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 8f4bb14..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": { @@ -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__