Browse Source

fix: use npx nx to resolve permission denied on Railway build

Made-with: Cursor
pull/6453/head
Priyanka Punukollu 1 month ago
parent
commit
5187679798
  1. 62
      package.json

62
package.json

@ -5,19 +5,19 @@
"license": "AGPL-3.0", "license": "AGPL-3.0",
"repository": "https://github.com/ghostfolio/ghostfolio", "repository": "https://github.com/ghostfolio/ghostfolio",
"scripts": { "scripts": {
"affected": "nx affected", "affected": "npx nx affected",
"affected:apps": "nx affected:apps", "affected:apps": "npx nx affected:apps",
"affected:build": "nx affected:build", "affected:build": "npx nx affected:build",
"affected:dep-graph": "nx affected:dep-graph", "affected:dep-graph": "npx nx affected:dep-graph",
"affected:libs": "nx affected:libs", "affected:libs": "npx nx affected:libs",
"affected:lint": "nx affected:lint", "affected:lint": "npx nx affected:lint",
"affected:test": "nx affected:test", "affected:test": "npx nx affected:test",
"analyze:client": "nx run client:build:production --stats-json && webpack-bundle-analyzer -p 1234 dist/apps/client/en/stats.json", "analyze:client": "npx nx run client:build:production --stats-json && webpack-bundle-analyzer -p 1234 dist/apps/client/en/stats.json",
"angular": "node --max_old_space_size=32768 ./node_modules/@angular/cli/bin/ng", "angular": "node --max_old_space_size=32768 ./node_modules/@angular/cli/bin/ng",
"build": "npm run build:api", "build": "npm run build:api",
"build:api": "nx run api:copy-assets && nx run api:build:production", "build:api": "npx nx run api:copy-assets && npx nx run api:build:production",
"build:production": "nx run api:copy-assets && nx run api:build:production && nx run client:copy-assets && nx run client:build:production && nx run ui:build-storybook && npm run replace-placeholders-in-build", "build:production": "npx nx run api:copy-assets && npx nx run api:build:production && npx nx run client:copy-assets && npx nx run client:build:production && npx nx run ui:build-storybook && npm run replace-placeholders-in-build",
"build:storybook": "nx run ui:build-storybook", "build:storybook": "npx nx run ui:build-storybook",
"database:format-schema": "prisma format", "database:format-schema": "prisma format",
"database:generate-typings": "prisma generate", "database:generate-typings": "prisma generate",
"database:gui": "prisma studio", "database:gui": "prisma studio",
@ -27,34 +27,34 @@
"database:seed": "prisma db seed", "database:seed": "prisma db seed",
"database:setup": "npm run database:push && npm run database:seed", "database:setup": "npm run database:push && npm run database:seed",
"database:validate-schema": "prisma validate", "database:validate-schema": "prisma validate",
"dep-graph": "nx dep-graph", "dep-graph": "npx nx dep-graph",
"extract-locales": "nx run client:extract-i18n --output-path ./apps/client/src/locales", "extract-locales": "npx nx run client:extract-i18n --output-path ./apps/client/src/locales",
"format": "nx format:write", "format": "npx nx format:write",
"format:check": "nx format:check", "format:check": "npx nx format:check",
"format:write": "nx format:write", "format:write": "npx nx format:write",
"help": "nx help", "help": "npx nx help",
"lint": "nx run-many --target=lint --all", "lint": "npx nx run-many --target=lint --all",
"ng": "nx", "ng": "npx nx",
"nx": "nx", "nx": "npx nx",
"postinstall": "prisma generate", "postinstall": "prisma generate",
"prepare": "husky", "prepare": "husky",
"prisma": "prisma", "prisma": "prisma",
"replace-placeholders-in-build": "node ./replace.build.mjs", "replace-placeholders-in-build": "node ./replace.build.mjs",
"start": "node dist/apps/api/main", "start": "node dist/apps/api/main",
"start:client": "nx run client:copy-assets && nx run client:serve --configuration=development-en --hmr -o", "start:client": "npx nx run client:copy-assets && npx nx run client:serve --configuration=development-en --hmr -o",
"start:production": "npm run database:migrate && npm run database:seed && node main", "start:production": "npm run database:migrate && npm run database:seed && node main",
"start:server": "nx run api:copy-assets && nx run api:serve --watch", "start:server": "npx nx run api:copy-assets && npx nx run api:serve --watch",
"start:storybook": "nx run ui:storybook", "start:storybook": "npx nx run ui:storybook",
"test": "npx dotenv-cli -e .env.example -- npx nx run-many --target=test --all --parallel=4", "test": "npx dotenv-cli -e .env.example -- npx nx run-many --target=test --all --parallel=4",
"test:api": "npx dotenv-cli -e .env.example -- nx test api", "test:api": "npx dotenv-cli -e .env.example -- npx nx test api",
"test:common": "npx dotenv-cli -e .env.example -- nx test common", "test:common": "npx dotenv-cli -e .env.example -- npx nx test common",
"test:single": "nx run api:test --test-file object.helper.spec.ts", "test:single": "npx nx run api:test --test-file object.helper.spec.ts",
"test:ui": "npx dotenv-cli -e .env.example -- nx test ui", "test:ui": "npx dotenv-cli -e .env.example -- npx nx test ui",
"ts-node": "ts-node", "ts-node": "ts-node",
"update": "nx migrate latest", "update": "npx nx migrate latest",
"watch:server": "nx run api:copy-assets && nx run api:build --watch", "watch:server": "npx nx run api:copy-assets && npx nx run api:build --watch",
"watch:test": "nx test --watch", "watch:test": "npx nx test --watch",
"workspace-generator": "nx workspace-generator" "workspace-generator": "npx nx workspace-generator"
}, },
"dependencies": { "dependencies": {
"@angular/animations": "21.1.1", "@angular/animations": "21.1.1",

Loading…
Cancel
Save