chore: move hardcoded node packages from Makefile to package.json

This commit is contained in:
josselinonduty 2025-04-20 23:01:41 +09:00
parent 3417a68f8f
commit bd1afe3cfa
No known key found for this signature in database
3 changed files with 14 additions and 10 deletions

13
.gitignore vendored
View File

@ -1,9 +1,8 @@
node_modules
flatpak
source
app
source/
node_modules/
flatpak/
app/
artifacts/
.vscode/
package-lock.json
yarn.lock
artifacts
package.json
.vscode/launch.json

View File

@ -13,8 +13,7 @@ PACKAGE_MANAGER_INSTALL_CMD ?= install
PACKAGE_MANAGER_ADD_CMD ?= install
install_build_deps:
@$(PACKAGE_MANAGER) $(PACKAGE_MANAGER_ADD_CMD) @electron/asar@3.2.18 --engine-strict
@$(PACKAGE_MANAGER) $(PACKAGE_MANAGER_ADD_CMD) prettier@2.8.8
@$(PACKAGE_MANAGER) $(PACKAGE_MANAGER_INSTALL_CMD)
prepare: clean install_build_deps
@mkdir -p $(SOURCE_DIR)
@ -138,4 +137,4 @@ release: prepare-release
clean:
@rm -rf ./$(APP_DIR) flatpak node_modules ./$(SOURCE_DIR) artifacts package.json
@rm -rf ./$(APP_DIR) flatpak node_modules ./$(SOURCE_DIR) artifacts package-lock.json yarn.lock

6
package.json Normal file
View File

@ -0,0 +1,6 @@
{
"dependencies": {
"@electron/asar": "3.2.18",
"prettier": "2.8.8"
}
}