Skip to content

Commit

Permalink
Merge pull request #92 from BobbyWibowo/pr-3.2.16b
Browse files Browse the repository at this point in the history
  • Loading branch information
Pitu authored Sep 8, 2023
2 parents f1682aa + 529ac5f commit 87a5e59
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 103 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ jobs:
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --non-interactive

- name: Build application (Classic)
run: yarn build

- name: Build application (BetterDiscord plugin)
run: yarn build-bd

Expand Down
2 changes: 0 additions & 2 deletions dist/magane.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/magane.min.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
}
],
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"build-bd": "rollup -c rollup-bd.config.js",
"dev-bd": "rollup -c rollup-bd.config.js -w",
"build-vc": "rollup -c rollup-vencord.config.js",
Expand Down
8 changes: 5 additions & 3 deletions rollup-bd.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ export default {
}),
{
name: 'copyDistFile',
writeBundle: () => Boolean(process.env.BD_PLUGIN_PATH) &&
fs.copyFile(file, process.env.BD_PLUGIN_PATH) &&
console.log(`Copied dist file to ${process.env.BD_PLUGIN_PATH}`)
writeBundle: async () => {
if (!Boolean(process.env.BD_PLUGIN_PATH)) return;
await fs.copyFile(file, process.env.BD_PLUGIN_PATH);
console.log(`Copied dist file to ${process.env.BD_PLUGIN_PATH}`);
}
}
],
watch: {
Expand Down
8 changes: 5 additions & 3 deletions rollup-vencord.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ export default {
}),
{
name: 'copyDistFile',
writeBundle: () => Boolean(process.env.VENCORD_PLUGIN_PATH) &&
fs.copyFile(file, process.env.VENCORD_PLUGIN_PATH) &&
console.log(`Copied dist file to ${process.env.VENCORD_PLUGIN_PATH}`)
writeBundle: async () => {
if (!Boolean(process.env.VENCORD_PLUGIN_PATH)) return;
await fs.copyFile(file, process.env.VENCORD_PLUGIN_PATH);
console.log(`Copied dist file to ${process.env.VENCORD_PLUGIN_PATH}`);
}
}
],
watch: {
Expand Down
60 changes: 0 additions & 60 deletions rollup.config.js

This file was deleted.

29 changes: 0 additions & 29 deletions src/main.js

This file was deleted.

0 comments on commit 87a5e59

Please sign in to comment.