File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 35
35
"test:coverage" : " jest --coverage" ,
36
36
"report:coverage" : " npm run test:coverage && codecov" ,
37
37
"semantic-release" : " semantic-release" ,
38
- "webpack" : " webpack && cp package.json dist"
38
+ "webpack" : " webpack && node scripts/copyPackageJson.js" ,
39
+ "webpack:debug" : " PACKAGE_NAME=crusher-debug yarn webpack"
39
40
},
40
41
"bin" : {
41
42
"crusher-cli" : " ./src/bin/index.js"
Original file line number Diff line number Diff line change
1
+ const fs = require ( 'fs' ) ;
2
+ const path = require ( 'path' ) ;
3
+
4
+ const packageJSON = require ( "../package.json" ) ;
5
+
6
+ if ( process . env . PACKAGE_NAME ) {
7
+ packageJSON . name = process . env . PACKAGE_NAME ;
8
+ }
9
+
10
+ if ( fs . existsSync ( "./dist/package.json" ) ) {
11
+ fs . unlinkSync ( "./dist/package.json" ) ;
12
+ }
13
+
14
+ fs . writeFileSync ( "./dist/package.json" , JSON . stringify ( packageJSON ) , "utf8" ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export const RECORDER_MAC_BUILD = `https://github.com/crusherdev/crusher-downloa
15
15
export const RECORDER_MAC_ARM64_BUILD = `https://github.com/crusherdev/crusher-downloads/releases/download/v${ recorderVersion } /Crusher.Recorder-${ recorderVersion } -mac-arm64.zip` ;
16
16
export const RECORDER_LINUX_BUILd = `https://github.com/crusherdev/crusher-downloads/releases/download/v${ recorderVersion } /Crusher.Recorder-${ recorderVersion } -linux.zip` ;
17
17
18
-
19
18
export const CLOUDFLARED_URL = {
20
19
MAC : "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-darwin-amd64.tgz" ,
21
20
LINUX : "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64"
You can’t perform that action at this time.
0 commit comments