File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 9
9
"typings" : " dist/index.browser.d.ts" ,
10
10
"scripts" : {
11
11
"clean" : " rm -rf dist" ,
12
+ "clean:win" : " (if exist dist rd /s/q dist)" ,
12
13
"lint" : " tsc --noEmit && eslint 'lib/**/*.js' 'lib/**/*.ts'" ,
13
14
"test" : " TS_NODE_COMPILER_OPTIONS='{\" module\" : \" commonjs\" }' mocha -r ts-node/register -r lib/tests/exit_on_unhandled_rejection.js 'lib/**/*.tests.ts' 'lib/**/*.tests.js' && jest" ,
14
15
"posttest" : " npm run lint" ,
18
19
"test-karma-local" : " karma start karma.local_chrome.bs.conf.js && npm run build-browser-umd && karma start karma.local_chrome.umd.conf.js" ,
19
20
"prebuild" : " npm run clean" ,
20
21
"build" : " rollup -c && cp dist/index.lite.d.ts dist/optimizely.lite.es.d.ts && cp dist/index.lite.d.ts dist/optimizely.lite.es.min.d.ts && cp dist/index.lite.d.ts dist/optimizely.lite.min.d.ts" ,
22
+ "build:win" : " rollup -c && type nul > dist/optimizely.lite.es.d.ts && type nul > dist/optimizely.lite.es.min.d.ts && type nul > dist/optimizely.lite.min.d.ts" ,
21
23
"build-browser-umd" : " rollup -c --config-umd" ,
22
24
"coveralls" : " nyc --reporter=lcov npm test" ,
23
25
"prepare" : " npm run build" ,
24
- "prepublishOnly" : " npm test && npm run test-ci"
26
+ "prepublishOnly" : " npm test && npm run test-ci" ,
27
+ "postbuild:win" : " @powershell copy \" dist/index.lite.d.ts\" \" dist/optimizely.lite.es.d.ts\" && @powershell copy \" dist/index.lite.d.ts\" \" dist/optimizely.lite.es.min.d.ts\" && @powershell copy \" dist/index.lite.d.ts\" \" dist/optimizely.lite.min.d.ts\" "
25
28
},
26
29
"repository" : {
27
30
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments