Skip to content

Commit

Permalink
chore: Add rollup and support es/umd
Browse files Browse the repository at this point in the history
  • Loading branch information
shfshanyue committed Oct 3, 2021
1 parent f361e30 commit 28f42df
Show file tree
Hide file tree
Showing 4 changed files with 251 additions and 4 deletions.
218 changes: 218 additions & 0 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,32 @@
"version": "1.3.4",
"description": "中华人民共和国行政区划代码 API 快查,支持省地市三级数据联动,根据国家标准 GB 2260 行政区划代码制定",
"main": "dist/index.js",
"module": "dist/index.mjs",
"engines": {
"node": ">=8.0.0"
},
"files": [
"dist"
],
"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-typescript": "^8.2.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"axios": "^0.21.1",
"chai": "^4.3.4",
"cheerio": "^1.0.0-rc.3",
"lodash": "^4.17.21",
"mocha": "^9.0.3",
"rollup": "^2.58.0",
"ts-node": "^10.2.0",
"typescript": "^4.3.5"
},
"scripts": {
"test": "mocha test.ts -r ts-node/register",
"fetch": "node script/fetch.js",
"prepublishOnly": "npm run build",
"build": "tsc"
"build": "rollup -c"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 28f42df

Please sign in to comment.