Skip to content

Commit

Permalink
fix broken release build (#1)
Browse files Browse the repository at this point in the history
* fix broken release build
* bump app version
  • Loading branch information
Kun Chen authored Apr 30, 2023
1 parent ccde542 commit fa51973
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"lint": "eslint . --max-warnings 0",
"build": "npm run build:app && shx cp -r ../terminal/dist/. dist/terminal/",
"build:app": "shx rm -rf dist && tsc -p . && webpack --config webpack.config.js && webpack --config webpack.preload.config.js && shx cp -r public dist/public",
"build:app": "shx rm -rf dist && tsc -p . && webpack --config webpack.config.js && webpack --config webpack.preload.config.js",
"test": "jest --colors"
},
"devDependencies": {
Expand All @@ -31,6 +31,7 @@
"@terminalone/terminal": "*",
"@terminalone/types": "*",
"appdirsjs": "^1.2.7",
"copy-webpack-plugin": "^11.0.0",
"dayjs": "^1.11.7",
"electron": "^24.1.2",
"electron-devtools-installer": "^3.2.0",
Expand Down
15 changes: 15 additions & 0 deletions apps/app/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');

module.exports = {
mode: 'production',
Expand Down Expand Up @@ -26,4 +27,18 @@ module.exports = {
},
],
},
plugins: [
new CopyPlugin({
patterns: [
{
from: './public',
to: './public',
},
{
from: '../../node_modules/node-pty',
to: './node_modules/node-pty',
},
],
}),
],
};
157 changes: 157 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@terminalone/monorepo",
"version": "0.1.0",
"version": "0.1.1",
"description": "A fast, elegant and intelligent cross-platform terminal.",
"author": "Kun Chen",
"license": "MIT",
Expand Down Expand Up @@ -42,6 +42,7 @@
"files": [
"apps/app/dist/**/*"
],
"includeSubNodeModules": true,
"directories": {
"buildResources": "apps/app/assets"
}
Expand Down

0 comments on commit fa51973

Please sign in to comment.