|
2 | 2 | "name": "@kiltprotocol/config",
|
3 | 3 | "version": "0.32.0",
|
4 | 4 | "description": "",
|
5 |
| - "main": "./lib/cjs/index.js", |
6 |
| - "module": "./lib/esm/index.js", |
7 |
| - "types": "./lib/cjs/index.d.ts", |
| 5 | + "type": "commonjs", |
| 6 | + "main": "./lib/index.js", |
| 7 | + "module": "./lib/index.mjs", |
| 8 | + "types": "./lib/index.d.ts", |
8 | 9 | "exports": {
|
9 | 10 | ".": {
|
10 |
| - "import": "./lib/esm/index.js", |
11 |
| - "require": "./lib/cjs/index.js" |
| 11 | + "import": "./lib/index.mjs", |
| 12 | + "require": "./lib/index.js", |
| 13 | + "types": "./lib/index.d.ts" |
12 | 14 | }
|
13 | 15 | },
|
14 | 16 | "files": [
|
|
18 | 20 | "clean": "rimraf ./lib",
|
19 | 21 | "build": "yarn clean && yarn build:ts",
|
20 | 22 | "build:ts": "yarn build:cjs && yarn build:esm",
|
21 |
| - "build:cjs": "tsc --declaration -p tsconfig.build.json && echo '{\"type\":\"commonjs\"}' > ./lib/cjs/package.json", |
22 |
| - "build:esm": "tsc --declaration -p tsconfig.esm.json && echo '{\"type\":\"module\"}' > ./lib/esm/package.json" |
| 23 | + "build:cjs": "tsc --declaration -p tsconfig.build.json", |
| 24 | + "build:esm": "tsc --declaration -p tsconfig.esm.json && yarn exec cp -f ./lib/esm/index.js ./lib/index.mjs && rimraf ./lib/esm" |
23 | 25 | },
|
24 | 26 | "repository": "github:kiltprotocol/sdk-js",
|
25 | 27 | "engines": {
|
|
0 commit comments