This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 55
55
"@react-native-community/async-storage" : " ^1.2.0"
56
56
},
57
57
"scripts" : {
58
+ "clean" : " rm -rf lib" ,
58
59
"lint" : " tsc --noEmit && eslint --fix 'src/**/*.ts' '__test__/**/*.ts'" ,
59
60
"test" : " jest" ,
60
61
"posttest" : " npm run lint" ,
61
- "tsc" : " rm -rf lib && tsc" ,
62
- "prepare" : " npm run tsc" ,
62
+ "prebuild" : " npm run clean" ,
63
+ "build" : " tsc" ,
64
+ "prepare" : " npm run build" ,
63
65
"prepublishOnly" : " npm test"
64
66
}
65
67
}
Original file line number Diff line number Diff line change 19
19
" package.json"
20
20
],
21
21
"scripts" : {
22
- "tsc" : " rm -rf lib && tsc" ,
22
+ "clean" : " rm -rf lib" ,
23
+ "prebuild" : " npm run clean" ,
24
+ "build" : " tsc" ,
23
25
"test" : " jest" ,
24
- "prepare" : " npm run tsc " ,
26
+ "prepare" : " npm run build " ,
25
27
"prepublishOnly" : " npm test"
26
28
},
27
29
"repository" : {
Original file line number Diff line number Diff line change 19
19
" package.json"
20
20
],
21
21
"scripts" : {
22
- "tsc" : " rm -rf lib && tsc" ,
22
+ "clean" : " rm -rf lib" ,
23
+ "prebuild" : " npm run clean" ,
24
+ "build" : " tsc" ,
23
25
"test" : " jest" ,
24
- "prepare" : " npm run tsc " ,
26
+ "prepare" : " npm run build " ,
25
27
"prepublishOnly" : " npm test"
26
28
},
27
29
"repository" : {
Original file line number Diff line number Diff line change 8
8
"react-native" : " dist/optimizely.react_native.min.js" ,
9
9
"typings" : " lib/index.d.ts" ,
10
10
"scripts" : {
11
+ "clean" : " rm -rf dist" ,
11
12
"lint" : " eslint 'lib/**/*.js'" ,
12
13
"test" : " mocha ./lib/*.tests.js ./lib/**/*.tests.js ./lib/**/**/*tests.js --recursive --exit --require esm --require lib/tests/exit_on_unhandled_rejection.js" ,
13
14
"test-ci" : " npm run test-xbrowser && npm run test-umdbrowser" ,
14
15
"test-xbrowser" : " karma start karma.bs.conf.js --single-run" ,
15
16
"test-umdbrowser" : " npm run build-browser-umd && karma start karma.umd.conf.js --single-run" ,
16
17
"build-browser-umd" : " rollup -c --environment BUILD_UMD_BUNDLE" ,
17
- "build" : " rm -rf dist && rollup -c --environment BUILD_ALL" ,
18
+ "prebuild" : " npm run clean" ,
19
+ "build" : " rollup -c --environment BUILD_ALL" ,
18
20
"cover" : " istanbul cover _mocha ./lib/*.tests.js ./lib/**/*.tests.js ./lib/**/**/*tests.js" ,
19
21
"coveralls" : " npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls" ,
20
22
"prepare" : " npm run build" ,
Original file line number Diff line number Diff line change 19
19
" package.json"
20
20
],
21
21
"scripts" : {
22
- "tsc" : " rm -rf lib && tsc" ,
22
+ "clean" : " rm -rf lib" ,
23
+ "prebuild" : " npm run clean" ,
24
+ "build" : " tsc" ,
23
25
"test" : " jest" ,
24
- "prepare" : " npm run tsc " ,
26
+ "prepare" : " npm run build " ,
25
27
"prepublishOnly" : " npm test"
26
28
},
27
29
"repository" : {
You can’t perform that action at this time.
0 commit comments