Skip to content

Commit

Permalink
fixed script to build cjs mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 12, 2023
1 parent da4062d commit e3ae152
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"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",
"types": "./index.d.ts",
"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",
Expand Down

0 comments on commit e3ae152

Please sign in to comment.