File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 - name : Lint
3636 run : npm run lint
3737
38- - name : Build
39- run : npm run build:ci
40- env :
41- DISCORD_TOKEN : ${{ secrets.DISCORD_TOKEN }}
42- CLIENT_ID : ${{ secrets.CLIENT_ID }}
43-
44- - name : Run tests
45- run : npm run test:ci
38+ - name : Build and test
39+ run : npm run test:build
4640
Original file line number Diff line number Diff line change 77 "build:ci" : " npm run build:ts && npm run build:copy" ,
88 "build:dev" : " pnpm run build:ts && pnpm run build:copy" ,
99 "build:ts" : " tsup" ,
10+ "build:test" : " tsup --entry 'src/**/*.ts' --entry 'test/**/*.ts'" ,
1011 "build:copy" : " node scripts/copy-assets.js" ,
1112 "start" : " node dist/index.js" ,
1213 "dev" : " tsx watch src/index.ts" ,
2223 "check:fix" : " biome check --write ." ,
2324 "typecheck" : " tsc --noEmit" ,
2425 "test" : " tsx --test '**/*.test.ts'" ,
25- "test:ci" : " node --test dist/**/*.test.js" ,
26+ "test:ci" : " node --test $(find dist -name '*.test.js')" ,
27+ "test:build" : " npm run build:test && npm run test:ci" ,
2628 "prepare" : " husky" ,
2729 "pre-commit" : " lint-staged" ,
2830 "sync-guides" : " tsx scripts/sync-guides.js" ,
You can’t perform that action at this time.
0 commit comments