|
10 | 10 | "import": "./dist/index.mjs", |
11 | 11 | "types": "./dist/index.d.ts" |
12 | 12 | }, |
13 | | - "./browser": { |
14 | | - "import": "./dist/browser.mjs", |
15 | | - "types": "./dist/browser.d.ts" |
16 | | - }, |
17 | | - "./node": { |
18 | | - "import": "./dist/node.mjs", |
19 | | - "types": "./dist/node.d.ts" |
20 | | - }, |
21 | 13 | "./umd": "./dist/index.umd.js", |
22 | 14 | "./package.json": "./package.json" |
23 | 15 | }, |
|
27 | 19 | "LICENSE" |
28 | 20 | ], |
29 | 21 | "scripts": { |
30 | | - "build": "npm run build:types && npm run build:main && npm run build:browser && npm run build:node && npm run build:umd", |
| 22 | + "build": "npm run build:types && npm run build:lib && npm run build:umd", |
31 | 23 | "build:types": "tsc -p tsconfig.build.json", |
32 | | - "build:main": "webpack --mode production --config webpack.config.js --env target=main", |
33 | | - "build:browser": "webpack --mode production --config webpack.config.js --env target=browser", |
34 | | - "build:node": "webpack --mode production --config webpack.config.js --env target=node", |
| 24 | + "build:lib": "webpack --mode production --config webpack.config.js --env target=lib", |
35 | 25 | "build:umd": "webpack --mode production --config webpack.config.js --env target=umd", |
36 | | - "build:dev": "npm run build:types && webpack --mode development --config webpack.config.js --env target=main", |
| 26 | + "build:dev": "npm run build:types && webpack --mode development --config webpack.config.js --env target=lib", |
37 | 27 | "check": "tsc --noEmit", |
38 | 28 | "format": "prettier --write \"src/**/*.ts\"", |
39 | 29 | "generate-client": "ts-node scripts/generate-client.ts && npm run format", |
|
0 commit comments