From 1b3ec0f145281dddfb6dee2550856311880811b8 Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Mon, 26 Nov 2018 11:45:58 +0100 Subject: [PATCH] fix build --- package-lock.json | 2 +- package.json | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ef07552..d5af121 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oceanprotocol/squid", - "version": "0.1.24", + "version": "0.1.25", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5ac30de..268d64c 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,12 @@ "name": "@oceanprotocol/squid", "version": "0.1.25", "description": "JavaScript client library for Ocean Protocol", - "main": "dist/squid.js", + "main": "dist/cjs/squid.js", "module": "dist/esm/squid.js", "browser": "dist/umd/squid.min.js", - "files": ["dist/umd"], + "files": [ + "dist/umd" + ], "scripts": { "test": "mocha", "test:watch": "mocha -w --watch-extensions js,ts,json", @@ -13,7 +15,7 @@ "clean": "rm -rf ./dist/ ./doc/ ./coverage ./.nyc_output", "lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'", "start": "npm link @oceanprotocol/keeper-contracts @oceanprotocol/secret-store-client && npm run build:watch", - "build": "npm run clean && npm run lint && tsc && npm run build:all && npm run doc", + "build": "npm run clean && npm run lint && npm run build:all && npm run doc", "build:all": "npm run build:es2015 && npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:umd:min", "build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", "build:esm": "tsc --module es2015 --target es5 --outDir dist/esm",