From 9ab2906cc3fb1e843366aee3c375dcde187ff79f Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Thu, 6 May 2021 08:39:08 +0300 Subject: [PATCH] build:cjs - change package.json "type" --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 33d2bde7..aec19f6a 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "schema": "ts-json-schema-generator -f tsconfig.json -p 'src/{modules,typings}/**/*.ts' -t '*' | node bin/schema-tweak.js > schema.json", "build": "yarn run build:esm && yarn run build:cjs", "build:esm": "tsc --module es2020 --outDir dist/esm", - "build:cjs": "tsc --module commonjs --outDir dist/cjs", + "build:cjs": "tsc --module commonjs --outDir dist/cjs && sed -i 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json", "generateSchema": "yarn schema", "prepublishOnly": "yarn build && yarn generateSchema", "test": "node --experimental-vm-modules node_modules/.bin/jest",