Skip to content

Commit

Permalink
Undo coalescing: don't want coverage in src output
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed May 22, 2023
1 parent 9f4b003 commit adcaf76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
},
"env": {
"test": {
"comments": true, // for debugging
"plugins": [ "istanbul" ] // for code coverage
},
"development": {
"comments": true
"comments": true // for jsdocs
},
"production": {
// stricter target for final browser bundle
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"scripts": {
"build": "cross-env NODE_ENV=test yarn _build",
"build:prod": "cross-env NODE_ENV=production yarn _build",
"build:node": "build:babel && build:ts",
"build:babel": "babel --extensions '.ts' --out-dir lib/ src/",
"build:node": "yarn _babel && yarn build:ts",
"build:ts": "tsc -p ./config/tsconfig.json",
"build:browser": "webpack --stats-modules-space 999 -c config/webpack.config.browser.js",
"build:docs": "cross-env NODE_ENV=development yarn _babel",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/ jsdoc/",
"docs": "cross-env NODE_ENV=development yarn build:babel && jsdoc -c ./config/.jsdoc.json --verbose",
"docs": "yarn build:docs && jsdoc -c ./config/.jsdoc.json --verbose",
"test": "yarn test:node && yarn test:integration && yarn test:browser",
"test:node": "yarn _nyc mocha --recursive 'test/unit/**/*.js'",
"test:integration": "yarn _nyc mocha --recursive 'test/integration/**/*.js'",
Expand All @@ -40,6 +40,7 @@
"preversion": "yarn clean && yarn fmt && yarn build:prod && yarn test",
"prepare": "yarn build:prod",
"_build": "yarn build:node && yarn build:browser",
"_babel": "babel --extensions '.ts' --out-dir lib/ src/",
"_nyc": "nyc --nycrc-path config/.nycrc",
"_prettier": "prettier --ignore-path config/.prettierignore --write './**/*.js'"
},
Expand Down

0 comments on commit adcaf76

Please sign in to comment.