Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Commit

Permalink
standardised Jest Babel config for ES modules in other DevSnicket pac…
Browse files Browse the repository at this point in the history
…kages
  • Loading branch information
Graham Dyson committed Feb 24, 2020
1 parent f8b88a8 commit 09cec92
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 28 deletions.
3 changes: 3 additions & 0 deletions babel.config.cjs
@@ -0,0 +1,3 @@
// Copyright (c) 2019 Graham Dyson. All Rights Reserved. Licensed under the MIT license. See LICENSE file in the repository root for full license information.

module.exports = { plugins: [ "@babel/plugin-transform-modules-commonjs" ] };
277 changes: 255 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
@@ -1,10 +1,5 @@
{
"author": "Graham Dyson",
"babel": {
"plugins": [
"@babel/plugin-transform-modules-commonjs"
]
},
"bugs": {
"url": "https://github.com/DevSnicket/eunice/issues"
},
Expand All @@ -14,6 +9,7 @@
"js-yaml": "3.13.1"
},
"devDependencies": {
"@babel/core": "7.8.4",
"@babel/plugin-transform-modules-commonjs": "7.8.3",
"@types/jest": "24.0.19",
"@types/node": "10.12.12",
Expand All @@ -39,7 +35,10 @@
"functions": 100,
"lines": 100
}
}
},
"transformIgnorePatterns": [
"node_modules/(?!@devsnicket)"
]
},
"keywords": [
"architecture",
Expand Down

0 comments on commit 09cec92

Please sign in to comment.