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 22 "name" : " @code-pushup/create-cli" ,
33 "version" : " 0.119.0" ,
44 "license" : " MIT" ,
5- "bin" : " index.js" ,
5+ "bin" : " ./bin/ index.js" ,
66 "homepage" : " https://github.com/code-pushup/cli/tree/main/packages/create-cli#readme" ,
77 "bugs" : {
88 "url" : " https://github.com/code-pushup/cli/issues?q=is%3Aissue%20state%3Aopen%20type%3ABug%20label%3A\" 🧩%20create-cli\" "
Original file line number Diff line number Diff line change 44 "sourceRoot" : " packages/create-cli/src" ,
55 "projectType" : " library" ,
66 "targets" : {
7- "build" : {},
7+ "build" : {
8+ "options" : {
9+ "assets" : [" {projectRoot}/*.md" , " {projectRoot}/bin/*" ]
10+ }
11+ },
812 "lint" : {},
913
1014 "unit-test" : {},
You can’t perform that action at this time.
0 commit comments