From 0bbbdc00d3e781b46898be520a1429101c6b4b1e Mon Sep 17 00:00:00 2001 From: Jakub Sydor Date: Mon, 18 Oct 2021 16:17:12 +0200 Subject: [PATCH] feat(build): include `patches` into build --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a9bf6384..28638193 100644 --- a/package.json +++ b/package.json @@ -6,13 +6,14 @@ "module": "dist/iam-client-lib.esm.js", "types": "dist/src/iam-client-lib.d.ts", "files": [ - "dist" + "dist", + "patches" ], "scripts": { "postinstall": "patch-package", "lint": "npx eslint ./src/**/*.ts ./test/**/*.ts", "prebuild": "rimraf dist ethers", - "build": "npm run build:contracts && npm run build:ts && copyfiles \"ethers/**/*.d.ts\" dist && copyfiles \"patches/*.patch\" dist", + "build": "npm run build:contracts && npm run build:ts && copyfiles \"ethers/**/*.d.ts\" dist", "build:node": "npm run build:nats_node && bili --format cjs", "build:front_end": "npm run build:nats_front_end && bili --format esm", "build:nats_front_end": "grep -rl '\"nats.ws\"' ./src | xargs perl -i -pe's/nats\\.ws/nats\\.ws\\/lib\\/src\\/mod\\.js/g'",