innetjs 2.2.19 → 2.2.21

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.
package/bin/innet CHANGED
@@ -330,7 +330,7 @@ class InnetJS {
330
330
  }),
331
331
  ];
332
332
  }
333
- this.withEnv(options);
333
+ this.withEnv(options, true);
334
334
  yield logger__default["default"].start('Build production bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
335
335
  const bundle = yield rollup__default["default"].rollup(options);
336
336
  yield bundle.write(outputOptions);
@@ -423,7 +423,7 @@ class InnetJS {
423
423
  exclude: stringExcludeDom,
424
424
  }), this.createClient(key, cert, pkg, index), livereload(Object.assign({ exts: ['html', 'css', 'js', 'png', 'svg', 'webp', 'gif', 'jpg', 'json'], watch: [this.devBuildFolder, this.publicFolder], verbose: false }, (key && cert ? { https: { key, cert } } : {}))));
425
425
  }
426
- this.withEnv(options);
426
+ this.withEnv(options, true);
427
427
  const watcher = rollup__default["default"].watch(options);
428
428
  watcher.on('event', (e) => tslib.__awaiter(this, void 0, void 0, function* () {
429
429
  if (e.code === 'ERROR') {
@@ -648,8 +648,11 @@ class InnetJS {
648
648
  }));
649
649
  }
650
650
  }
651
- withEnv(options) {
652
- options.plugins.push(env__default["default"](this.envPrefix, { include: options.input }));
651
+ withEnv(options, virtual) {
652
+ options.plugins.push(env__default["default"](this.envPrefix, {
653
+ include: options.input,
654
+ virtual,
655
+ }));
653
656
  }
654
657
  increaseVersion(release) {
655
658
  return tslib.__awaiter(this, void 0, void 0, function* () {
@@ -760,7 +763,7 @@ class InnetJS {
760
763
  }
761
764
 
762
765
  (function () {
763
- const env = {"__INNETJS__PACKAGE_VERSION":"2.2.19"};
766
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.21"};
764
767
  if (typeof process === 'undefined') {
765
768
  globalThis.process = { env: env };
766
769
  } else if (process.env) {
package/index.d.ts CHANGED
@@ -64,7 +64,7 @@ export declare class InnetJS {
64
64
  release({ index, pub }?: ReleaseOptions): Promise<void>;
65
65
  private _lintUsage;
66
66
  withLint(options: rollup.RollupOptions): void;
67
- withEnv(options: rollup.RollupOptions): void;
67
+ withEnv(options: rollup.RollupOptions, virtual?: boolean): void;
68
68
  increaseVersion(release: string): Promise<void>;
69
69
  getPackage(): Promise<Record<string, any>>;
70
70
  createClient(key: any, cert: any, pkg: any, index: string): rollup.Plugin;
package/index.js CHANGED
@@ -73,7 +73,7 @@ var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
73
73
  var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
74
74
 
75
75
  (function () {
76
- const env = {"__INNETJS__PACKAGE_VERSION":"2.2.19"};
76
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.21"};
77
77
  if (typeof process === 'undefined') {
78
78
  globalThis.process = { env: env };
79
79
  } else if (process.env) {
@@ -229,7 +229,7 @@ class InnetJS {
229
229
  }),
230
230
  ];
231
231
  }
232
- this.withEnv(options);
232
+ this.withEnv(options, true);
233
233
  yield logger__default["default"].start('Build production bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
234
234
  const bundle = yield rollup__default["default"].rollup(options);
235
235
  yield bundle.write(outputOptions);
@@ -322,7 +322,7 @@ class InnetJS {
322
322
  exclude: constants.stringExcludeDom,
323
323
  }), this.createClient(key, cert, pkg, index), livereload(Object.assign({ exts: ['html', 'css', 'js', 'png', 'svg', 'webp', 'gif', 'jpg', 'json'], watch: [this.devBuildFolder, this.publicFolder], verbose: false }, (key && cert ? { https: { key, cert } } : {}))));
324
324
  }
325
- this.withEnv(options);
325
+ this.withEnv(options, true);
326
326
  const watcher = rollup__default["default"].watch(options);
327
327
  watcher.on('event', (e) => tslib.__awaiter(this, void 0, void 0, function* () {
328
328
  if (e.code === 'ERROR') {
@@ -547,8 +547,11 @@ class InnetJS {
547
547
  }));
548
548
  }
549
549
  }
550
- withEnv(options) {
551
- options.plugins.push(env__default["default"](this.envPrefix, { include: options.input }));
550
+ withEnv(options, virtual) {
551
+ options.plugins.push(env__default["default"](this.envPrefix, {
552
+ include: options.input,
553
+ virtual,
554
+ }));
552
555
  }
553
556
  increaseVersion(release) {
554
557
  return tslib.__awaiter(this, void 0, void 0, function* () {
package/index.mjs CHANGED
@@ -38,7 +38,7 @@ import { reporter, convertIndexFile, getFile } from './helpers.mjs';
38
38
  import { updateDotenv } from './updateDotenv.mjs';
39
39
 
40
40
  (function () {
41
- const env = {"__INNETJS__PACKAGE_VERSION":"2.2.19"};
41
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.21"};
42
42
  if (typeof process === 'undefined') {
43
43
  globalThis.process = { env: env };
44
44
  } else if (process.env) {
@@ -194,7 +194,7 @@ class InnetJS {
194
194
  }),
195
195
  ];
196
196
  }
197
- this.withEnv(options);
197
+ this.withEnv(options, true);
198
198
  yield logger.start('Build production bundle', () => __awaiter(this, void 0, void 0, function* () {
199
199
  const bundle = yield rollup.rollup(options);
200
200
  yield bundle.write(outputOptions);
@@ -287,7 +287,7 @@ class InnetJS {
287
287
  exclude: stringExcludeDom,
288
288
  }), this.createClient(key, cert, pkg, index), livereload(Object.assign({ exts: ['html', 'css', 'js', 'png', 'svg', 'webp', 'gif', 'jpg', 'json'], watch: [this.devBuildFolder, this.publicFolder], verbose: false }, (key && cert ? { https: { key, cert } } : {}))));
289
289
  }
290
- this.withEnv(options);
290
+ this.withEnv(options, true);
291
291
  const watcher = rollup.watch(options);
292
292
  watcher.on('event', (e) => __awaiter(this, void 0, void 0, function* () {
293
293
  if (e.code === 'ERROR') {
@@ -512,8 +512,11 @@ class InnetJS {
512
512
  }));
513
513
  }
514
514
  }
515
- withEnv(options) {
516
- options.plugins.push(env(this.envPrefix, { include: options.input }));
515
+ withEnv(options, virtual) {
516
+ options.plugins.push(env(this.envPrefix, {
517
+ include: options.input,
518
+ virtual,
519
+ }));
517
520
  }
518
521
  increaseVersion(release) {
519
522
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.2.19",
3
+ "version": "2.2.21",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",