diff options
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 9 |
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", |
