From afb5366dd7ce07443e27f72f53ada98f3db3d0c2 Mon Sep 17 00:00:00 2001 From: Bogdan Bodnar Date: Wed, 8 Jan 2020 09:38:02 +0100 Subject: [PATCH 1/2] Fix main js path in unpacked library. --- package.json | 2 +- scripts/collect_files.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f4bb14..c5fdbf0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "reforis" ], "license": "GPL-3.0", - "main": "./index.js", + "main": "./src/index.js", "dependencies": { "axios": "^0.19.0", "jest-transform-css": "^2.0.0", diff --git a/scripts/collect_files.sh b/scripts/collect_files.sh index 2ea7534..c2e1645 100644 --- a/scripts/collect_files.sh +++ b/scripts/collect_files.sh @@ -4,7 +4,10 @@ mkdir -p dist cp -rf ./src/* dist cp package.json package-lock.json README.md dist +sed -i 's/\/src//g' dist/package.json # remove ./src from main js file path + cp -rf translations dist + # Remove unwanted files rm -rf dist/**/__tests__ rm -rf dist/__mocks__ From 35f307200d5ec39bf0176098d7f2fc1e211272ef Mon Sep 17 00:00:00 2001 From: Bogdan Bodnar Date: Wed, 8 Jan 2020 11:59:33 +0100 Subject: [PATCH 2/2] Bump version to 3.0.1. --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6628e24..28c5b53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "foris", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c5fdbf0..ced51ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "foris", - "version": "3.0.0", + "version": "3.0.1", "description": "Set of components and utils for Foris and its plugins.", "author": "CZ.NIC, z.s.p.o.", "repository": {