diff --git a/package.json b/package.json index d449937..5245449 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,8 @@ "scripts": { "electron": "@powershell ./scripts/electron.ps1", "electron-serve": "@powershell ./scripts/electron-serve.ps1", + "copy-files-from-to": "copy-files-from-to", + "concurrently": "concurrently", "outdated": "npm outdated", "update-packages": "npm update --save", "ng": "ng", diff --git a/scripts/electron-serve.ps1 b/scripts/electron-serve.ps1 index 6c4d608..90dd045 100644 --- a/scripts/electron-serve.ps1 +++ b/scripts/electron-serve.ps1 @@ -2,11 +2,11 @@ dotnet publish ` ./dotnet/JustClipboardManager.ClipboardListener/JustClipboardManager.ClipboardListener.csproj ` --output ./dist/dotnet -copy-files-from-to +npm run copy-files-from-to tsc -p tsconfig.electron.json cd ./plugins/text-plugin npx rollup -c cd ../../ -concurrently "ng serve" "wait-on tcp:4200 && electron . --serve" +npm run concurrently "ng serve" "wait-on tcp:4200 && electron . --serve" diff --git a/scripts/electron.ps1 b/scripts/electron.ps1 index 1240fca..7d7b7e3 100644 --- a/scripts/electron.ps1 +++ b/scripts/electron.ps1 @@ -2,7 +2,7 @@ dotnet publish ` ./dotnet/JustClipboardManager.ClipboardListener/JustClipboardManager.ClipboardListener.csproj ` --output ./dist/dotnet -copy-files-from-to +npm run copy-files-from-to tsc -p tsconfig.electron.json cd ./plugins/text-plugin diff --git a/scripts/prod-electron-forge-make.ps1 b/scripts/prod-electron-forge-make.ps1 index 7342459..d6ed825 100644 --- a/scripts/prod-electron-forge-make.ps1 +++ b/scripts/prod-electron-forge-make.ps1 @@ -1,4 +1,4 @@ -copy-files-from-to +npm run copy-files-from-to tsc -p tsconfig.electron.json npm run build