mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-26 00:21:36 +01:00
Fix main js path in unpacked library.
This commit is contained in:
parent
6769e84e62
commit
afb5366dd7
|
@ -12,7 +12,7 @@
|
||||||
"reforis"
|
"reforis"
|
||||||
],
|
],
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"main": "./index.js",
|
"main": "./src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.19.0",
|
"axios": "^0.19.0",
|
||||||
"jest-transform-css": "^2.0.0",
|
"jest-transform-css": "^2.0.0",
|
||||||
|
|
|
@ -4,7 +4,10 @@
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
cp -rf ./src/* dist
|
cp -rf ./src/* dist
|
||||||
cp package.json package-lock.json README.md 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
|
cp -rf translations dist
|
||||||
|
|
||||||
# Remove unwanted files
|
# Remove unwanted files
|
||||||
rm -rf dist/**/__tests__
|
rm -rf dist/**/__tests__
|
||||||
rm -rf dist/__mocks__
|
rm -rf dist/__mocks__
|
||||||
|
|
Loading…
Reference in New Issue
Block a user