From 3988b2e4c648aa25f5d0d1879ba79550bce8d384 Mon Sep 17 00:00:00 2001 From: fodidjr38xj Date: Fri, 28 Apr 2023 14:46:45 +0200 Subject: [PATCH] Always build ES --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index dbc2695..aaf491a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "coverage-html": "nyc mocha && nyc report --reporter=html", "converalls": "nyc mocha && nyc report --reporter=text-lcov | coveralls", "dev": "mocha -w", - "build": "yarn build-commonjs", + "prepack": "yarn build", + "build": "yarn build-commonjs && yarn build-es", "build-commonjs": "rm -rf lib && yarn tsc -b tsconfig.build-commonjs.json", "build-es": "rm -rf es && yarn tsc -b tsconfig.build-es.json", "preversion": "yarn lint && yarn test && yarn build"