@jayfong/x-server 2.24.0 → 2.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,7 @@ class BuildUtil {
74
74
  sourcemap: false,
75
75
  treeShaking: true,
76
76
  banner: {
77
- js: `${`;${Object.keys(options.inlineEnvs || {}).map(key => `process.env[${JSON.stringify(key)}]=${JSON.stringify(options.inlineEnvs[key])}`).join(';')}`};process.env.X_SERVER_ENVS=${JSON.stringify(JSON.stringify(options.inlineEnvs || {}))};`
77
+ js: [...Object.keys(options.inlineEnvs || {}).map(key => `process.env[${JSON.stringify(key)}]=${JSON.stringify(options.inlineEnvs[key])};`), `process.env["X_SERVER_ENVS"]=${JSON.stringify(JSON.stringify(options.inlineEnvs || {}))};`].join('\n')
78
78
  },
79
79
  plugins: [{
80
80
  name: 'extract-assets',
@@ -25,7 +25,6 @@ _yargs.default.command('dev', '开始开发', _ => _.positional('index', {
25
25
  describe: '使用 tsx 运行',
26
26
  type: 'boolean'
27
27
  }).positional('env', {
28
- alias: 'e',
29
28
  describe: '环境变量文件',
30
29
  type: 'string',
31
30
  default: 'development'
@@ -94,7 +93,6 @@ _yargs.default.command('dev', '开始开发', _ => _.positional('index', {
94
93
  type: 'boolean',
95
94
  default: false
96
95
  }).positional('env', {
97
- alias: 'e',
98
96
  describe: '环境变量文件',
99
97
  type: 'string',
100
98
  default: 'production'
@@ -68,7 +68,7 @@ export class BuildUtil {
68
68
  sourcemap: false,
69
69
  treeShaking: true,
70
70
  banner: {
71
- js: `${`;${Object.keys(options.inlineEnvs || {}).map(key => `process.env[${JSON.stringify(key)}]=${JSON.stringify(options.inlineEnvs[key])}`).join(';')}`};process.env.X_SERVER_ENVS=${JSON.stringify(JSON.stringify(options.inlineEnvs || {}))};`
71
+ js: [...Object.keys(options.inlineEnvs || {}).map(key => `process.env[${JSON.stringify(key)}]=${JSON.stringify(options.inlineEnvs[key])};`), `process.env["X_SERVER_ENVS"]=${JSON.stringify(JSON.stringify(options.inlineEnvs || {}))};`].join('\n')
72
72
  },
73
73
  plugins: [{
74
74
  name: 'extract-assets',
package/lib/cli/cli.js CHANGED
@@ -22,7 +22,6 @@ yargs.command('dev', '开始开发', _ => _.positional('index', {
22
22
  describe: '使用 tsx 运行',
23
23
  type: 'boolean'
24
24
  }).positional('env', {
25
- alias: 'e',
26
25
  describe: '环境变量文件',
27
26
  type: 'string',
28
27
  default: 'development'
@@ -91,7 +90,6 @@ yargs.command('dev', '开始开发', _ => _.positional('index', {
91
90
  type: 'boolean',
92
91
  default: false
93
92
  }).positional('env', {
94
- alias: 'e',
95
93
  describe: '环境变量文件',
96
94
  type: 'string',
97
95
  default: 'production'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.24.0",
3
+ "version": "2.24.1",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",