innetjs 2.3.2 → 2.3.3
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 +5 -4
- package/index.d.ts +1 -1
- package/index.js +5 -4
- package/index.mjs +5 -4
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -296,7 +296,7 @@ class InnetJS {
|
|
|
296
296
|
jsx__default["default"](),
|
|
297
297
|
],
|
|
298
298
|
};
|
|
299
|
-
this.withLint(options);
|
|
299
|
+
this.withLint(options, true);
|
|
300
300
|
const outputOptions = {
|
|
301
301
|
dir: this.buildFolder,
|
|
302
302
|
sourcemap: this.sourcemap,
|
|
@@ -567,7 +567,7 @@ class InnetJS {
|
|
|
567
567
|
],
|
|
568
568
|
};
|
|
569
569
|
this.withLint(options);
|
|
570
|
-
this.withEnv(options);
|
|
570
|
+
this.withEnv(options, true);
|
|
571
571
|
const bundle = yield rollup__default["default"].rollup(options);
|
|
572
572
|
yield bundle.write(options.output);
|
|
573
573
|
yield bundle.close();
|
|
@@ -644,13 +644,14 @@ class InnetJS {
|
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
-
withLint(options) {
|
|
647
|
+
withLint(options, prod = false) {
|
|
648
648
|
if (this._lintUsage === undefined) {
|
|
649
649
|
this._lintUsage = fs__default["default"].existsSync(path__default["default"].join(this.projectFolder, '.eslintrc'));
|
|
650
650
|
}
|
|
651
651
|
if (this._lintUsage) {
|
|
652
652
|
options.plugins.push(eslint__default["default"]({
|
|
653
653
|
include: lintInclude,
|
|
654
|
+
throwOnError: prod,
|
|
654
655
|
}));
|
|
655
656
|
}
|
|
656
657
|
}
|
|
@@ -769,7 +770,7 @@ class InnetJS {
|
|
|
769
770
|
}
|
|
770
771
|
|
|
771
772
|
(function () {
|
|
772
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.
|
|
773
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.3"};
|
|
773
774
|
if (typeof process === 'undefined') {
|
|
774
775
|
globalThis.process = { env: env };
|
|
775
776
|
} else if (process.env) {
|
package/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare class InnetJS {
|
|
|
63
63
|
run(file: any): Promise<void>;
|
|
64
64
|
release({ index, pub }?: ReleaseOptions): Promise<void>;
|
|
65
65
|
private _lintUsage;
|
|
66
|
-
withLint(options: rollup.RollupOptions): void;
|
|
66
|
+
withLint(options: rollup.RollupOptions, prod?: boolean): void;
|
|
67
67
|
withEnv(options: rollup.RollupOptions, virtual?: boolean): void;
|
|
68
68
|
increaseVersion(release: string): Promise<void>;
|
|
69
69
|
getPackage(): Promise<Record<string, any>>;
|
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.3.
|
|
76
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.3"};
|
|
77
77
|
if (typeof process === 'undefined') {
|
|
78
78
|
globalThis.process = { env: env };
|
|
79
79
|
} else if (process.env) {
|
|
@@ -195,7 +195,7 @@ class InnetJS {
|
|
|
195
195
|
jsx__default["default"](),
|
|
196
196
|
],
|
|
197
197
|
};
|
|
198
|
-
this.withLint(options);
|
|
198
|
+
this.withLint(options, true);
|
|
199
199
|
const outputOptions = {
|
|
200
200
|
dir: this.buildFolder,
|
|
201
201
|
sourcemap: this.sourcemap,
|
|
@@ -466,7 +466,7 @@ class InnetJS {
|
|
|
466
466
|
],
|
|
467
467
|
};
|
|
468
468
|
this.withLint(options);
|
|
469
|
-
this.withEnv(options);
|
|
469
|
+
this.withEnv(options, true);
|
|
470
470
|
const bundle = yield rollup__default["default"].rollup(options);
|
|
471
471
|
yield bundle.write(options.output);
|
|
472
472
|
yield bundle.close();
|
|
@@ -543,13 +543,14 @@ class InnetJS {
|
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
|
-
withLint(options) {
|
|
546
|
+
withLint(options, prod = false) {
|
|
547
547
|
if (this._lintUsage === undefined) {
|
|
548
548
|
this._lintUsage = fs__default["default"].existsSync(path__default["default"].join(this.projectFolder, '.eslintrc'));
|
|
549
549
|
}
|
|
550
550
|
if (this._lintUsage) {
|
|
551
551
|
options.plugins.push(eslint__default["default"]({
|
|
552
552
|
include: constants.lintInclude,
|
|
553
|
+
throwOnError: prod,
|
|
553
554
|
}));
|
|
554
555
|
}
|
|
555
556
|
}
|
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.3.
|
|
41
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.3"};
|
|
42
42
|
if (typeof process === 'undefined') {
|
|
43
43
|
globalThis.process = { env: env };
|
|
44
44
|
} else if (process.env) {
|
|
@@ -160,7 +160,7 @@ class InnetJS {
|
|
|
160
160
|
jsx(),
|
|
161
161
|
],
|
|
162
162
|
};
|
|
163
|
-
this.withLint(options);
|
|
163
|
+
this.withLint(options, true);
|
|
164
164
|
const outputOptions = {
|
|
165
165
|
dir: this.buildFolder,
|
|
166
166
|
sourcemap: this.sourcemap,
|
|
@@ -431,7 +431,7 @@ class InnetJS {
|
|
|
431
431
|
],
|
|
432
432
|
};
|
|
433
433
|
this.withLint(options);
|
|
434
|
-
this.withEnv(options);
|
|
434
|
+
this.withEnv(options, true);
|
|
435
435
|
const bundle = yield rollup.rollup(options);
|
|
436
436
|
yield bundle.write(options.output);
|
|
437
437
|
yield bundle.close();
|
|
@@ -508,13 +508,14 @@ class InnetJS {
|
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
|
-
withLint(options) {
|
|
511
|
+
withLint(options, prod = false) {
|
|
512
512
|
if (this._lintUsage === undefined) {
|
|
513
513
|
this._lintUsage = fs.existsSync(path.join(this.projectFolder, '.eslintrc'));
|
|
514
514
|
}
|
|
515
515
|
if (this._lintUsage) {
|
|
516
516
|
options.plugins.push(eslint({
|
|
517
517
|
include: lintInclude,
|
|
518
|
+
throwOnError: prod,
|
|
518
519
|
}));
|
|
519
520
|
}
|
|
520
521
|
}
|