File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- {
2
- "type" : " module"
3
- }
1
+ {"type" :" module" ,"version" :" 1.13.3" }
Original file line number Diff line number Diff line change 82
82
"prepare-tests" : " npm run bundle && npm run bundle-treeshake" ,
83
83
"minify-umd" : " terser underscore-umd.js -c \" evaluate=false\" --comments \" / .*/\" -m" ,
84
84
"minify-esm" : " terser underscore-esm.js -c \" evaluate=false\" --comments \" / .*/\" -m" ,
85
+ "module-package-json" : " node -e 'console.log(`{\" type\" :\" module\" ,\" version\" :\" ${process.env.npm_package_version}\" }`)' > modules/package.json" ,
85
86
"build-umd" : " npm run minify-umd -- --source-map content=underscore-umd.js.map --source-map-url \" \" -o underscore-umd-min.js" ,
86
- "build-esm" : " npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js" ,
87
+ "build-esm" : " npm run module-package-json && npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js" ,
87
88
"alias-bundle" : " cpy --rename=underscore.js underscore-umd.js . && cpy --rename=underscore-min.js underscore-umd-min.js . && cpy --rename=underscore-min.js.map underscore-umd-min.js.map ." ,
88
89
"build" : " npm run bundle && npm run build-umd && npm run build-esm && npm run alias-bundle" ,
89
90
"doc" : " docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst" ,
You can’t perform that action at this time.
0 commit comments