Browse Source

fix: Dont use npx within package scripts

Owen Diffey 1 year ago
parent
commit
7b98edc1a7
2 changed files with 8 additions and 8 deletions
  1. 4 4
      backend/package.json
  2. 4 4
      frontend/package.json

+ 4 - 4
backend/package.json

@@ -9,11 +9,11 @@
   "license": "GPL-3.0",
   "repository": "https://github.com/Musare/Musare",
   "scripts": {
-    "dev": "npx nodemon --es-module-specifier-resolution=node",
-    "docker:dev": "npx nodemon --es-module-specifier-resolution=node --legacy-watch --no-stdin /opt/app",
+    "dev": "nodemon --es-module-specifier-resolution=node",
+    "docker:dev": "nodemon --es-module-specifier-resolution=node --legacy-watch --no-stdin /opt/app",
     "docker:prod": "node --es-module-specifier-resolution=node /opt/app",
-    "lint": "npx eslint --cache logic",
-    "typescript": "npx tsc --noEmit --skipLibCheck"
+    "lint": "eslint --cache logic",
+    "typescript": "tsc --noEmit --skipLibCheck"
   },
   "dependencies": {
     "async": "^3.2.4",

+ 4 - 4
frontend/package.json

@@ -12,10 +12,10 @@
   "license": "GPL-3.0",
   "repository": "https://github.com/Musare/Musare",
   "scripts": {
-    "lint": "npx eslint --cache src --ext .js,.ts,.vue",
-    "dev": "npx vite",
-    "prod": "npx vite build --emptyOutDir",
-    "typescript": "npx vue-tsc --noEmit --skipLibCheck"
+    "lint": "eslint --cache src --ext .js,.ts,.vue",
+    "dev": "vite",
+    "prod": "vite build --emptyOutDir",
+    "typescript": "vue-tsc --noEmit --skipLibCheck"
   },
   "devDependencies": {
     "@typescript-eslint/eslint-plugin": "^5.35.1",