1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00

Merge branch 'fix-main-js-path' into 'dev'

Fix main js file path in unpacked library.

See merge request turris/reforis/foris-js!70
This commit is contained in:
Bogdan Bodnar 2020-01-09 07:20:48 +01:00
commit 9dcc689491
3 changed files with 6 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "foris",
"version": "3.0.0",
"version": "3.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -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",

View File

@ -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__