Skip to content

Commit

Permalink
module
Browse files Browse the repository at this point in the history
  • Loading branch information
bean authored and bean committed Feb 1, 2023
1 parent 688cb4e commit e121ec1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rx-http-kit",
"version": "1.1.3",
"version": "1.1.4",
"description": "A normalized HttpClient based by rxjs",
"main": "lib/index.js",
"module": "lib/index.es.js",
Expand All @@ -10,11 +10,12 @@
"types": "./types/index.d.ts",
"node": "./lib/index.js",
"require": "./lib/index.js",
"es2015": "./lib/index.es.js",
"default": "./lib/index.es.js"
"es2015": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist",
"lib",
"types",
"README.md",
Expand All @@ -23,7 +24,7 @@
"scripts": {
"format": "prettier --write --cache .",
"lint": "eslint --cache packages/*/{src,types,__tests__}/**",
"rollup": "tsc && rollup -c",
"rollup": "rollup -c",
"ci": "pnpm install --no-frozen-lockfile && pnpm run rollup && pnpm link ./",
"test:compile": "tsc -p ./tsconfig-test.json",
"test:server": "pnpm run test:compile && forever start test/dist/server.js",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
external,
output: [
{ format: 'cjs', file: pkg.main, exports: 'auto' },
{ format: 'esm', file: pkg.module }
{ format: 'esm', file: pkg.module },
{ format: 'esm', dir: 'dist', preserveModules: true, },
]
};
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dom"
],
"skipDefaultLibCheck": true,
"skipLibCheck": true
"skipLibCheck": true,
},
"exclude": [
"dist",
Expand Down

0 comments on commit e121ec1

Please sign in to comment.