Skip to content

Commit

Permalink
fix: add cross compatibility to dev script of package file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgelig committed Dec 14, 2022
1 parent 92dc797 commit 3b10c33
Show file tree
Hide file tree
Showing 5 changed files with 1,200 additions and 770 deletions.
2 changes: 1 addition & 1 deletion apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"license": "AGPL-3.0-or-later",
"scripts": {
"dev": "ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3000",
"dev": "cross-env ENVSH_ENV=.env.local sh ../../env.sh next dev -p 3000",
"build": "next build",
"build:env": "cd ../.. && ENVSH_ENV=./apps/builder/.env.docker ENVSH_OUTPUT=./apps/builder/public/__env.js bash env.sh",
"start": "next start",
Expand Down
3 changes: 2 additions & 1 deletion apps/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "AGPL-3.0-or-later",
"version": "0.1.0",
"scripts": {
"dev": "ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3001",
"dev": "cross-env ENVSH_ENV=.env.local sh ../../env.sh next dev -p 3001",
"build": "next build",
"build:env": "cd ../.. && ENVSH_ENV=./apps/viewer/.env.docker ENVSH_OUTPUT=./apps/viewer/public/__env.js bash env.sh",
"start": "next start -p 3001",
Expand Down Expand Up @@ -44,6 +44,7 @@
"@types/react": "18.0.26",
"@types/sanitize-html": "2.6.2",
"dotenv": "16.0.3",
"cuid": "2.1.8",
"emails": "workspace:*",
"eslint": "8.29.0",
"eslint-config-custom": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"docker:up": "docker compose -f docker-compose.dev.yml up -d && sleep 5",
"docker:nuke": "docker compose -f docker-compose.dev.yml down --volumes --remove-orphans",
"lint": "turbo run lint",
"dev": "pnpm docker:up && NEXT_PUBLIC_E2E_TEST=false turbo run dev --filter=builder... --filter=viewer... --parallel --no-cache",
"dev": "pnpm docker:up && cross-env NEXT_PUBLIC_E2E_TEST=false turbo run dev --filter=builder... --filter=viewer... --parallel --no-cache",
"dev:mocking": "pnpm docker:up && NEXT_PUBLIC_E2E_TEST=true turbo run dev --filter=builder... --filter=viewer... --parallel --no-cache",
"build": "pnpm docker:up && turbo run build",
"build:builder": "turbo run build --filter=builder... && turbo run build:env --filter=builder...",
Expand All @@ -22,6 +22,7 @@
"generate-change-log": "pnpx gitmoji-changelog"
},
"devDependencies": {
"cross-env": "7.0.2",
"cz-emoji": "1.3.2-canary.2",
"husky": "^8.0.2",
"turbo": "1.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./index.ts",
"types": "./index.ts",
"scripts": {
"dev": "BROWSER=none prisma studio",
"dev": "cross-env BROWSER=none prisma studio",
"db:generate": "prisma generate",
"db:push": "prisma db push --skip-generate",
"db:migrate": "prisma migrate deploy",
Expand Down
Loading

0 comments on commit 3b10c33

Please sign in to comment.