File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ /**
4+ * This file serves as the CLI entry point.
5+ *
6+ * We use a separate bin file (instead of pointing directly to src/index.js)
7+ * because TypeScript build processes don't preserve file permissions.
8+ * By tracking this file in git with executable permissions (+x), we ensure
9+ * the CLI remains executable after npm publish without needing post-install scripts.
10+ */
11+ import '../src/index.js' ;
Original file line number Diff line number Diff line change 3939 },
4040 "type" : " module" ,
4141 "bin" : {
42- "code-pushup" : " ./src /index.js"
42+ "code-pushup" : " ./bin /index.js"
4343 },
4444 "engines" : {
4545 "node" : " >=20"
Original file line number Diff line number Diff line change 44 "sourceRoot" : " packages/cli/src" ,
55 "projectType" : " library" ,
66 "targets" : {
7- "build" : {},
7+ "build" : {
8+ "options" : {
9+ "assets" : [" {projectRoot}/*.md" , " {projectRoot}/bin/*" ]
10+ }
11+ },
812 "lint" : {},
913 "unit-test" : {},
1014 "int-test" : {},
You can’t perform that action at this time.
0 commit comments