From c387bb95f1c3e0821d9bb9b2ea43782ebbff75c6 Mon Sep 17 00:00:00 2001 From: Alex Ryltsov Date: Tue, 1 Nov 2022 09:48:17 +0200 Subject: [PATCH] bugfix: 18 Installation/build issue with 1.0.2 --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index dda2d75..30310c2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "@capacitor-community/file-opener", "version": "1.0.2", "description": "Capacitor File Opener. The plugin is able to open a file given the mimeType and the file uri.", - "type": "module", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", @@ -38,7 +37,7 @@ "prettier": "prettier \"**/*.{css,html,ts,js,java}\"", "swiftlint": "node-swiftlint", "docgen": "docgen --api FileOpenerPlugin --output-readme README.md --output-json dist/docs.json", - "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js", + "build": "npm run clean && npm run docgen && tsc && rollup --bundleConfigAsCjs -c rollup.config.js", "clean": "rimraf ./dist", "watch": "tsc --watch", "prepublishOnly": "npm run build"