fix: ignore tests in build output (#579)
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"plugins": [
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-transform-instanceof",
|
||||
"@babel/plugin-transform-classes"
|
||||
],
|
||||
"presets": ["@babel/preset-env"],
|
||||
"env": {
|
||||
"test": {
|
||||
"plugins": ["@babel/plugin-transform-runtime"]
|
||||
}
|
||||
}
|
||||
}
|
||||
22
packages/medusa-plugin-contentful/.babelrc.js
Normal file
22
packages/medusa-plugin-contentful/.babelrc.js
Normal file
@@ -0,0 +1,22 @@
|
||||
const ignore = []
|
||||
|
||||
// Jest needs to compile this code, but generally we don't want this copied
|
||||
// to output folders
|
||||
if (process.env.NODE_ENV !== `test`) {
|
||||
ignore.push(`**/__tests__`)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-transform-instanceof",
|
||||
"@babel/plugin-transform-classes",
|
||||
],
|
||||
presets: ["@babel/preset-env"],
|
||||
env: {
|
||||
test: {
|
||||
plugins: ["@babel/plugin-transform-runtime"],
|
||||
},
|
||||
},
|
||||
ignore,
|
||||
}
|
||||
1
packages/medusa-plugin-contentful/.gitignore
vendored
1
packages/medusa-plugin-contentful/.gitignore
vendored
@@ -3,6 +3,7 @@ node_modules
|
||||
.DS_store
|
||||
.env*
|
||||
/*.js
|
||||
!.babelrc.js
|
||||
!index.js
|
||||
yarn.lock
|
||||
|
||||
|
||||
Reference in New Issue
Block a user