-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from leezng/feat/esm
feat: support esm
- Loading branch information
Showing
4 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ node_modules/ | |
example-dist/ | ||
dist/ | ||
lib/ | ||
esm/ | ||
types/ | ||
npm-debug.log* | ||
yarn-debug.log* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,12 @@ | |
"description": "A JSON tree view component that is easy to use and also supports data selection.", | ||
"author": "leezng <[email protected]>", | ||
"main": "lib/vue-json-pretty.js", | ||
"module": "esm/vue-json-pretty.js", | ||
"scripts": { | ||
"dev": "node build/dev-server.js", | ||
"build": "node build/build.js", | ||
"build": "npm run build:main && npm run build:esm && npm run build:dts", | ||
"build:main": "node build/build.js", | ||
"build:esm": "cross-env ESM=true node build/build.js", | ||
"build:example": "cross-env EXAMPLE_ENV=true node build/build.js", | ||
"build:dts": "tsc --p tsconfig.dts.json && tsc-alias -p ./tsconfig.dts.json", | ||
"test": "cypress open", | ||
|
@@ -91,6 +94,7 @@ | |
], | ||
"files": [ | ||
"lib", | ||
"esm", | ||
"types" | ||
], | ||
"peerDependencies": { | ||
|