Skip to content

Commit

Permalink
build: update scripts (#626)
Browse files Browse the repository at this point in the history
Updates scripts for Prettier v3 usage, and removed an unneeded script
  • Loading branch information
wolfy1339 authored Sep 23, 2023
1 parent 89a7f68 commit df90dc6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
cache: npm
- run: npm ci
- run: npm run build
- name: "Fix pkg.files file pattern"
run: node scripts/fix-package-json.js
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
15 changes: 0 additions & 15 deletions scripts/fix-package-json.js

This file was deleted.

15 changes: 9 additions & 6 deletions scripts/update-endpoints/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ for (const endpoint of ENDPOINTS) {
}

const uniquePaths = [...new Set(paths.sort())];
writeFileSync(
"./src/generated/triggers-notification-paths.ts",
prettier.format(`export default ` + JSON.stringify(uniquePaths), {
parser: "typescript",
}),
);
async function main() {
writeFileSync(
"./src/generated/triggers-notification-paths.ts",
await prettier.format(`export default ` + JSON.stringify(uniquePaths), {
parser: "typescript",
}),
);
}
main();

0 comments on commit df90dc6

Please sign in to comment.