Skip to content

Commit

Permalink
feat(ESM): Add ESM build
Browse files Browse the repository at this point in the history
Upgrade core-interface
  • Loading branch information
cblanc committed Oct 21, 2020
1 parent b566833 commit ef825b8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -44,3 +44,4 @@ coverage.lcov
docs
videos/
screenshots/
esm/
6 changes: 3 additions & 3 deletions package-lock.json

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

8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -18,7 +18,7 @@
},
"scripts": {
"set-env": "node",
"build": "tsc",
"build": "tsc && tsc -p tsconfig.esm.json",
"semantic-release": "semantic-release --no-ci",
"lint": "eslint lib/**/*.ts",
"coverage": "codecov",
Expand All @@ -33,9 +33,11 @@
"extends": "@cablanchard/semantic-release/dist/npm"
},
"main": "dist/index.js",
"module": "esm/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
"dist",
"esm"
],
"prettier": {
"editorconfig": true,
Expand All @@ -55,7 +57,7 @@
],
"license": "MIT",
"dependencies": {
"@ideal-postcodes/core-interface": "~1.6.0"
"@ideal-postcodes/core-interface": "~1.7.0"
},
"devDependencies": {
"@cablanchard/eslint-config": "~2.0.1",
Expand Down
10 changes: 10 additions & 0 deletions tsconfig.esm.json
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"outDir": "./esm",
"moduleResolution": "node"
},
"exclude": ["node_modules"],
"include": ["lib/**/*"]
}

0 comments on commit ef825b8

Please sign in to comment.