2
0

🔧 Add cross env compatibility to scripts (#184)

This commit is contained in:
Jorgelig
2022-12-18 04:29:01 -06:00
committed by GitHub
parent 6c55510d80
commit 2cc61b1bf1
6 changed files with 523 additions and 413 deletions

View File

@@ -3,9 +3,9 @@
"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",
"build:env": "cd ../.. && cross-env ENVSH_ENV=./apps/builder/.env.docker ENVSH_OUTPUT=./apps/builder/public/__env.js bash env.sh",
"start": "next start",
"lint": "next lint",
"test": "pnpm playwright test",

View File

@@ -2,10 +2,10 @@
"name": "landing-page",
"version": "1.0.0",
"scripts": {
"dev": "ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3002",
"dev": "cross-env ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3002",
"start": "next start",
"build": "next build",
"build:env": "cd ../.. && ENVSH_ENV=./apps/landing-page/.env.docker ENVSH_OUTPUT=./apps/landing-page/public/__env.js bash env.sh",
"build:env": "cd ../.. && cross-env ENVSH_ENV=./apps/landing-page/.env.docker ENVSH_OUTPUT=./apps/landing-page/public/__env.js bash env.sh",
"lint": "next lint",
"analyze": "cross-env ANALYZE=true next build"
},

View File

@@ -3,9 +3,9 @@
"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",
"build:env": "cd ../.. && cross-env ENVSH_ENV=./apps/viewer/.env.docker ENVSH_OUTPUT=./apps/viewer/public/__env.js bash env.sh",
"start": "next start -p 3001",
"lint": "next lint",
"test": "pnpm playwright test",
@@ -43,6 +43,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:*",