aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorUri Shaked2019-12-07 21:36:47 +0200
committerUri Shaked2019-12-07 21:36:47 +0200
commitcdcd3e9de2ee4f5b7dfa4fc68001a0c10fc62f9b (patch)
tree7ab3ff747261ce7b2ebd478330a0fb3e0d9e6aad /package.json
parentchore: release 0.4.0 (diff)
downloadavr8js-cdcd3e9de2ee4f5b7dfa4fc68001a0c10fc62f9b.tar.gz
avr8js-cdcd3e9de2ee4f5b7dfa4fc68001a0c10fc62f9b.tar.bz2
avr8js-cdcd3e9de2ee4f5b7dfa4fc68001a0c10fc62f9b.zip
feat: publish both CJS and ESM to npm
also stop publishing source maps
Diffstat (limited to '')
-rw-r--r--package.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/package.json b/package.json
index 5866649..db00ed3 100644
--- a/package.json
+++ b/package.json
@@ -1,13 +1,14 @@
{
"name": "avr8js",
"version": "0.4.0",
- "main": "dist/index.js",
- "typings": "dist/index.d.ts",
+ "main": "dist/cjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/esm/index.d.ts",
"author": "Uri Shaked <uri@urishaked.com>",
"repository": "https://github.com/wokwi/avr8js",
"license": "MIT",
"scripts": {
- "build": "rimraf dist && tsc",
+ "build": "rimraf dist && tsc --sourceMap false && tsc -m commonjs --outDir dist/cjs --sourceMap false",
"build:demo": "parcel build demo/src/index.html -d demo/dist",
"prepare": "npm run build",
"start": "parcel demo/src/index.html -d demo/build",
@@ -24,7 +25,7 @@
"@types/jest": "^24.0.23",
"@types/node": "^12.12.7",
"@types/prettier": "^1.19.0",
- "@wokwi/elements": "^0.1.0",
+ "@wokwi/elements": "^0.1.1",
"husky": "^3.0.9",
"jest": "^24.9.0",
"lint-staged": "^9.4.2",