Skip to content

Commit

Permalink
Publish src directory as esmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed Jan 25, 2022
1 parent cf7a997 commit fdc982b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
coverage
npm-debug.log
yarn-error.log
dist-es
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
"version": "1.1.2",
"description": "Deep diffs two objects, including nested structures of arrays and objects, and return the difference.",
"main": "dist/index.js",
"module": "dist-es/index.js",
"types": "./index.d.ts",
"files": [
"dist",
"dist-es",
"index.d.ts",
"README.md"
],
"scripts": {
"build": "babel src -d dist --ignore \"**/*.test.js\"",
"build": "babel src -d dist --ignore \"**/*.test.js\" && yarn build:esmodule",
"build:esmodule": "rm -rf dist-es && mkdir dist-es && cp -r src/* dist-es && rm -rf dist-es/**/*.test.js",
"prepublish": "yarn build",
"lint": "eslint src",
"test": "jest",
Expand Down

0 comments on commit fdc982b

Please sign in to comment.