-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
34 lines (34 loc) · 1.17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"name": "esm-cjs-lib-example",
"version": "1.0.0",
"description": "Example code how to publish ESM and CJS backward compatible package",
"main": "index.js",
"scripts": {
"build.lib": "rollup -c ./packages/my-lib-example/rollup.config.js",
"build.lib.cjs": "rollup -c ./packages/my-lib-cjs/rollup.config.js",
"build.all": "yarn build.lib && yarn build.lib.cjs",
"cjs.esm": "ts-esm ./packages/example/src/cjs-esm.js --commonjs",
"cjs.esm.ts": "ts-esm ./packages/example-ts/src/cjs-esm.ts --commonjs",
"cjs": "ts-esm ./packages/example/src/cjs.js",
"cjs.ts": "ts-esm ./packages/example-ts/src/cjs.ts",
"esm": "ts-esm ./packages/example/src/esm.js",
"esm.ts": "ts-esm ./packages/example-ts/src/esm.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aelbore/esm-cjs-lib-example.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/aelbore/esm-cjs-lib-example/issues"
},
"homepage": "https://github.com/aelbore/esm-cjs-lib-example#readme",
"devDependencies": {
"aria-build": "^0.4.3",
"aria-fs": "^0.4.3",
"ts-esm": "^0.0.2",
"typescript": "^3.9.5"
}
}