Skip to content

Commit cfe0a0e

Browse files
authored
fix: Merge pull request #256 from UniversalDataTool/fix/transition-routing
Duplicate build directory to help with transition routing
2 parents 4aace8b + 553add7 commit cfe0a0e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.11.5",
44
"license": "MIT",
55
"main": "desktop/main.js",
6-
"homepage": "https://universaldatatool.com",
6+
"homepage": "https://universaldatatool.com/app/",
77
"scripts": {
88
"start": "cross-env PORT=6001 react-scripts start",
99
"build": "npm run build:web",
@@ -12,7 +12,7 @@
1212
"build:babel": "cross-env NODE_ENV=production babel ./src --out-dir=./lib --copy-files && cp ./package.json ./lib/package.json && node ./lib/lib/fix-deps.js",
1313
"build:vanilla": "parcel build -d ./lib -o vanilla.js ./src/vanilla/index.js",
1414
"build:vanilla:dev": "parcel ./src/vanilla/index.js",
15-
"build:web": "react-scripts build",
15+
"build:web": "rimraf build && react-scripts build && cp -r build ./build-copy && mv build-copy build/app",
1616
"build:desktop": "cross-env REACT_APP_DESKTOP=true PUBLIC_URL=./ react-scripts build && electron-builder build && cp ./desktop/entitlements.mac.plist ./build/entitlements.mac.plist",
1717
"start:desktop": "cross-env BROWSER=none USE_DEV_SERVER=yes concurrently 'npm run start' 'electron ./desktop'",
1818
"start:desktop:build": "electron ./desktop",
@@ -74,6 +74,7 @@
7474
"react-dom": "^16.8.6",
7575
"react-markdown": "^4.1.0",
7676
"react-nlp-annotate": "^0.1.22",
77+
"rimraf": "^3.0.2",
7778
"spelling": "^2.0.1"
7879
},
7980
"dependencies": {

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17150,7 +17150,7 @@ [email protected], rimraf@~2.6.2:
1715017150
dependencies:
1715117151
glob "^7.1.3"
1715217152

17153-
rimraf@^3.0.0:
17153+
rimraf@^3.0.0, rimraf@^3.0.2:
1715417154
version "3.0.2"
1715517155
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
1715617156
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==

0 commit comments

Comments
 (0)