Skip to content

Commit

Permalink
fix: set HOST and PORT environement variables
Browse files Browse the repository at this point in the history
  • Loading branch information
markmartirosian committed Oct 11, 2023
1 parent af5b56c commit 5bdec81
Show file tree
Hide file tree
Showing 10 changed files with 4,265 additions and 1,653 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"@commitlint/config-conventional": "17.7.0",
"@ls-lint/ls-lint": "2.1.0",
"@types/mocha": "10.0.2",
"@types/node": "20.8.2",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@types/node": "20.8.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"esbuild": "0.19.4",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-escapace": "3.18.2",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-editorconfig": "4.0.3",
Expand Down
12 changes: 6 additions & 6 deletions packages/browserslist-to-targets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@types/chai": "4.3.6",
"@types/chai": "4.3.7",
"@types/lodash-es": "4.17.9",
"@types/mocha": "10.0.2",
"@types/node": "20.8.2",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@types/node": "20.8.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"c8": "8.0.1",
"chai": "4.3.10",
"esbuild": "0.19.4",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-escapace": "3.18.2",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-editorconfig": "4.0.3",
Expand All @@ -42,7 +42,7 @@
"license": "MPL-2.0",
"module": "lib/esm/index.mjs",
"peerDependencies": {
"browserslist": ">=4.21.10",
"browserslist": ">=4.22.1",
"lightningcss": ">=1.22.0"
},
"private": false,
Expand Down
10 changes: 5 additions & 5 deletions packages/plugin-ajv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"devDependencies": {
"@types/lodash-es": "4.17.9",
"@types/node": "20.8.2",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@types/node": "20.8.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"esbuild": "0.19.4",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-escapace": "3.18.2",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-editorconfig": "4.0.3",
Expand All @@ -24,7 +24,7 @@
"prettier": "3.0.3",
"prettier-config-escapace": "1.0.6",
"typescript": "5.2.2",
"vite": "4.4.10"
"vite": "4.4.11"
},
"exports": {
".": {
Expand Down
10 changes: 5 additions & 5 deletions packages/plugin-lightningcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"@types/node": "20.8.2",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@types/node": "20.8.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"esbuild": "0.19.4",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-escapace": "3.18.2",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-editorconfig": "4.0.3",
Expand All @@ -21,7 +21,7 @@
"prettier": "3.0.3",
"prettier-config-escapace": "1.0.6",
"typescript": "5.2.2",
"vite": "4.4.10"
"vite": "4.4.11"
},
"exports": {
".": {
Expand Down
10 changes: 5 additions & 5 deletions packages/plugin-write-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"bugs": "https://github.com/escapace/yeux/issues",
"devDependencies": {
"@types/lodash-es": "4.17.9",
"@types/node": "20.8.2",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@types/node": "20.8.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"esbuild": "0.19.4",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-escapace": "3.18.2",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-editorconfig": "4.0.3",
Expand All @@ -19,7 +19,7 @@
"prettier": "3.0.3",
"prettier-config-escapace": "1.0.6",
"typescript": "5.2.2",
"vite": "4.4.10"
"vite": "4.4.11"
},
"exports": {
".": {
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-write-assets/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const writeAssets = (options: Options): Plugin => {
}
},
async buildStart() {
// TODO: rimraf outDir
const outDir = path.resolve(config.root, opts.outDir)

if (opts.publicDir) {
Expand Down
10 changes: 5 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"author": "escapace <opensource@escapace.com>",
"bugs": "https://github.com/escapace/yeux/issues",
"devDependencies": {
"@types/node": "20.8.2",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"eslint": "8.50.0",
"@types/node": "20.8.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"eslint": "8.51.0",
"eslint-config-escapace": "3.18.2",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-editorconfig": "4.0.3",
Expand All @@ -23,7 +23,7 @@
"homepage": "https://github.com/escapace/yeux",
"license": "MPL-2.0",
"peerDependencies": {
"vite": ">=4.4.9"
"vite": ">=4.4.11"
},
"private": false,
"repository": "escapace/yeux",
Expand Down
22 changes: 11 additions & 11 deletions packages/yeux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"bugs": "https://github.com/escapace/yeux/issues",
"dependencies": {
"@pnpm/read-package-json": "^8.0.3",
"@rollup/pluginutils": "^5.0.4",
"@pnpm/read-package-json": "^8.0.4",
"@rollup/pluginutils": "^5.0.5",
"@yeuxjs/types": "workspace:*",
"@yeuxjs/write-assets": "workspace:*",
"arg": "^5.0.2",
Expand All @@ -28,24 +28,24 @@
"source-map-support": "^0.5.21",
"split2": "^4.2.0",
"supports-color": "^9.4.0",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@pnpm/types": "9.2.0",
"@pnpm/types": "9.3.0",
"@types/body-parser": "1.19.3",
"@types/chai": "4.3.6",
"@types/express": "4.17.18",
"@types/chai": "4.3.7",
"@types/express": "4.17.19",
"@types/fs-extra": "11.0.2",
"@types/lodash-es": "4.17.9",
"@types/mocha": "10.0.2",
"@types/node": "20.8.2",
"@types/node": "20.8.4",
"@types/semver": "7.5.3",
"@types/source-map-support": "0.5.8",
"@types/split2": "4.2.1",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"chai": "4.3.10",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-escapace": "3.18.2",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-editorconfig": "4.0.3",
Expand All @@ -54,7 +54,7 @@
"prettier-config-escapace": "1.0.6",
"rollup": "3.29.4",
"typescript": "5.2.2",
"vite": "4.4.10",
"vite": "4.4.11",
"workbox-build": "7.0.0"
},
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions packages/yeux/src/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export const preview = async (state: State) => {
{
cleanup: true,
env: {
SERVER_HOST: state.serverHost,
SERVER_PORT: `${state.serverPort}`,
HOST: state.serverHost,
PORT: `${state.serverPort}`,
NODE_ENV: `${state.nodeEnv}`,
[state.color ? 'FORCE_COLOR' : 'NO_COLOR']: 'true'
},
Expand Down

0 comments on commit 5bdec81

Please sign in to comment.