From cdcd3e9de2ee4f5b7dfa4fc68001a0c10fc62f9b Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 7 Dec 2019 21:36:47 +0200 Subject: feat: publish both CJS and ESM to npm also stop publishing source maps --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'package.json') 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 ", "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", -- cgit v1.2.3