Skip to content

Commit

Permalink
chore: fix build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed Feb 4, 2024
1 parent daaaa36 commit 0cadec7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ export default defineConfig({
});

const packExtension = async () => {
const files = (await fs.readdir("./dist")).map((file) => `--extra-source=./dist/${file}`);
await $`gnome-extensions pack -f ${files} -o ./dist`;
const files = (await fs.readdir("./dist"))
.filter((f) => fs.statSync(`./dist/${f}`).isFile())
.map((file) => `--extra-source=./${file}`);
await $`cd dist && gnome-extensions pack -f ${files} -o ./`;
};

const copyAssets = () => fs.copy("./assets", "./dist");

0 comments on commit 0cadec7

Please sign in to comment.