Skip to content

Commit

Permalink
chore: Modify the output dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 23, 2021
1 parent 423bb5f commit 8e928c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Edit at https://www.gitignore.io/?templates=node

lib
cjs
esm
build
doc
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
"version": "1.18.17",
"description": "Baidu Map Components for React.",
"author": "kenny wong <wowohoo@qq.com>",
"main": "lib/index.js",
"main": "cjs/index.js",
"module": "esm/index.js",
"scripts": {
"prepare": "husky install && npm run build",
"released": "npm run build && npm run doc",
"doc": "kkt build --app-src ./website && npm run map",
"start": "kkt start --app-src ./website",
"watch": "tsbb watch & npm run css:watch",
"build": "tsbb build",
"build": "tsbb build && npm run css:build",
"test": "tsbb test",
"coverage": "tsbb test --coverage",
"css:build": "compile-less -d src -o lib/esm",
"css:watch": "compile-less -d src -o lib/esm --watch",
"css:build": "compile-less -d src -o esm",
"css:watch": "compile-less -d src -o esm --watch",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
},
Expand Down
1 change: 1 addition & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"noEmit": false,
"baseUrl": ".",
"outDir": "../cjs",
"jsx": "react"
},
"include": ["../src"]
Expand Down

0 comments on commit 8e928c5

Please sign in to comment.