fix(plugin): don't ignore lib es folder when publishing, also export es/index.js ( not ts )

This commit is contained in:
李通洲 2021-01-26 16:22:08 +08:00 committed by Yanyan Wang
parent d923571707
commit 3cdb2f6fd1
2 changed files with 1 additions and 7 deletions

View File

@ -13,8 +13,6 @@ coverage
# Dependency directories
node_modules
**/node_modules
**/lib
**/es
jspm_packages/
# Optional npm cache directory
@ -33,10 +31,6 @@ jspm_packages/
# IDE
.idea
# build
lib
build
# lock
package-lock.json

View File

@ -3,7 +3,7 @@
"version": "0.0.6",
"description": "G6 Plugin",
"main": "lib/index.js",
"module": "es/index.ts",
"module": "es/index.js",
"scripts": {
"build": "npm run clean && father build",
"ci": "npm run build && npm run coverage",