Skip to content

Commit

Permalink
fix: don't ignore tests in main Babel
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyhuy committed Sep 13, 2020
1 parent 08a5dc0 commit bf2ecd2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
presets: ['@babel/preset-env'],
ignore: ['**/*.spec.js', '**/*.test.js'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-modules-commonjs'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lerna": "lerna",
"lint": "eslint packages/**/*",
"test": "jest",
"release": "lerna version --create-release github --conventional-commits --yes && lerna publish from-package --yes"
"release": "lerna run build && lerna version --create-release github --conventional-commits --yes && lerna publish from-package --yes"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/ggsmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
},
"main": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --out-dir ./dist"
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
}
2 changes: 1 addition & 1 deletion packages/remark-spoilers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"license": "MIT",
"main": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --out-dir ./dist"
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
}
2 changes: 1 addition & 1 deletion packages/remark-text-alignment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
},
"main": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --out-dir ./dist"
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
}

0 comments on commit bf2ecd2

Please sign in to comment.