From e3ae1529d5175e418ce222dd86c03c44b2e2004f Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Wed, 12 Apr 2023 03:08:59 -0300 Subject: [PATCH] fixed script to build cjs mode --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2d68286..d2aff09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-social-bridge", - "version": "1.2.4", + "version": "1.2.5", "description": "This library allows you to create a common application using ReactJS and inject it in a controlled way into a Widget on Near Social. Therefore, the Widget talks to the React application and vice versa, making it possible to consume Discovery API resources within the React application.", "main": "./dist/cjs/index.js", "module": "./index.js", @@ -8,7 +8,8 @@ "scripts": { "clean": "rm -rf dist components hooks auth bridge navigation request services session-storage utils constants.d.ts constants.js index.d.ts index.js", "copy-files": "copyfiles -u 1 src/components/spinner.css src/bridge/contexts/fixBadIframe.css ./", - "build": "npm run clean; tsc -p tsconfig.prod.json; npm run copy-files; npm run build:cjs", + "copy-files-cjs": "copyfiles -u 1 src/components/spinner.css src/bridge/contexts/fixBadIframe.css ./dist/cjs/", + "build": "npm run clean; tsc -p tsconfig.prod.json; npm run copy-files; npm run copy-files-cjs; npm run build:cjs", "build:esm": "tsc", "build:cjs": "tsc --module commonjs --outDir dist/cjs", "prepack": "npm install; npm run build",