Add run scripts

This commit is contained in:
David Majdandžić
2023-03-29 14:03:40 +02:00
parent 630c8a1004
commit e69938f9a1
2 changed files with 30 additions and 17 deletions

12
.run/pkg_windows.run.xml Normal file
View File

@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="pkg:windows" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="pkg:windows" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>

View File

@@ -4,7 +4,8 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "pkg:windows": "pkg main.js --target node16-windows-x64 --output main.exe",
"pkg:linux": "pkg main.js --target node16-linux-x64 --output main.exe"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",