From aaf40e9bec48159d30382b68d744b00a88d10259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 17 Apr 2020 15:47:20 +0200 Subject: [PATCH] [IMP] tooling: add iife build to npm package This is useful to link to the iife version in some other projects. --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e1261b9c..1635e939 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "types": "dist/types/index.d.ts", "files": [ "dist/types/", - "dist/owl.js" + "dist/owl.js", + "dist/owl-iife.js" ], "engines": { "node": ">=10.15.3" @@ -24,7 +25,7 @@ "pretools:watch": "npm run build", "tools:watch": "npm-run-all --parallel tools:serve \"build:* -- --watch\"", "prettier": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,doc/**/*.md} --write", - "publish": "npm run buildcommonjs && npm publish", + "publish": "mv dist/owl.js dist/owl-iife.js && npm run buildcommonjs && npm publish", "release": "node tools/release.js" }, "repository": {