innetjs 2.3.3 → 2.3.5
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/_virtual/_rollup-plugin-process-env.js +12 -0
- package/_virtual/_rollup-plugin-process-env.mjs +10 -0
- package/bin/innet +4 -5
- package/index.js +4 -14
- package/index.mjs +4 -14
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
;(function () {
|
|
4
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.5"};
|
|
5
|
+
if (typeof process === 'undefined') {
|
|
6
|
+
globalThis.process = { env: env };
|
|
7
|
+
} else if (process.env) {
|
|
8
|
+
Object.assign(process.env, env);
|
|
9
|
+
} else {
|
|
10
|
+
process.env = env;
|
|
11
|
+
}
|
|
12
|
+
})();
|
package/bin/innet
CHANGED
|
@@ -316,7 +316,7 @@ class InnetJS {
|
|
|
316
316
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
317
317
|
url: true,
|
|
318
318
|
plugins: [autoprefixer__default["default"]()],
|
|
319
|
-
|
|
319
|
+
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
320
320
|
sourceMap: this.sourcemap,
|
|
321
321
|
minimize: true,
|
|
322
322
|
}), string({
|
|
@@ -417,7 +417,7 @@ class InnetJS {
|
|
|
417
417
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
418
418
|
url: true,
|
|
419
419
|
plugins: [autoprefixer__default["default"]()],
|
|
420
|
-
|
|
420
|
+
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
421
421
|
sourceMap: true,
|
|
422
422
|
}), string({
|
|
423
423
|
include: '**/*.*',
|
|
@@ -558,9 +558,8 @@ class InnetJS {
|
|
|
558
558
|
styles__default["default"]({
|
|
559
559
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
560
560
|
plugins: [autoprefixer__default["default"]()],
|
|
561
|
-
|
|
561
|
+
autoModules: cssModules ? (id) => !id.includes('.global.') : true,
|
|
562
562
|
minimize: true,
|
|
563
|
-
autoModules: true,
|
|
564
563
|
}),
|
|
565
564
|
pluginNodeResolve.nodeResolve(),
|
|
566
565
|
external__default["default"](),
|
|
@@ -770,7 +769,7 @@ class InnetJS {
|
|
|
770
769
|
}
|
|
771
770
|
|
|
772
771
|
(function () {
|
|
773
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.
|
|
772
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.5"};
|
|
774
773
|
if (typeof process === 'undefined') {
|
|
775
774
|
globalThis.process = { env: env };
|
|
776
775
|
} else if (process.env) {
|
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('./_virtual/_rollup-plugin-process-env.js');
|
|
5
6
|
var tslib = require('tslib');
|
|
6
7
|
var logger = require('@cantinc/logger');
|
|
7
8
|
var commonjs = require('@rollup/plugin-commonjs');
|
|
@@ -72,16 +73,6 @@ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
|
72
73
|
var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
|
|
73
74
|
var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
|
|
74
75
|
|
|
75
|
-
;(function () {
|
|
76
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.3"};
|
|
77
|
-
if (typeof process === 'undefined') {
|
|
78
|
-
globalThis.process = { env: env };
|
|
79
|
-
} else if (process.env) {
|
|
80
|
-
Object.assign(process.env, env);
|
|
81
|
-
} else {
|
|
82
|
-
process.env = env;
|
|
83
|
-
}
|
|
84
|
-
})();
|
|
85
76
|
const livereload = require('rollup-plugin-livereload');
|
|
86
77
|
const { string } = require('rollup-plugin-string');
|
|
87
78
|
const { exec, spawn } = require('child_process');
|
|
@@ -215,7 +206,7 @@ class InnetJS {
|
|
|
215
206
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
216
207
|
url: true,
|
|
217
208
|
plugins: [autoprefixer__default["default"]()],
|
|
218
|
-
|
|
209
|
+
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
219
210
|
sourceMap: this.sourcemap,
|
|
220
211
|
minimize: true,
|
|
221
212
|
}), string({
|
|
@@ -316,7 +307,7 @@ class InnetJS {
|
|
|
316
307
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
317
308
|
url: true,
|
|
318
309
|
plugins: [autoprefixer__default["default"]()],
|
|
319
|
-
|
|
310
|
+
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
320
311
|
sourceMap: true,
|
|
321
312
|
}), string({
|
|
322
313
|
include: '**/*.*',
|
|
@@ -457,9 +448,8 @@ class InnetJS {
|
|
|
457
448
|
styles__default["default"]({
|
|
458
449
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
459
450
|
plugins: [autoprefixer__default["default"]()],
|
|
460
|
-
|
|
451
|
+
autoModules: cssModules ? (id) => !id.includes('.global.') : true,
|
|
461
452
|
minimize: true,
|
|
462
|
-
autoModules: true,
|
|
463
453
|
}),
|
|
464
454
|
pluginNodeResolve.nodeResolve(),
|
|
465
455
|
external__default["default"](),
|
package/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './_virtual/_rollup-plugin-process-env.mjs';
|
|
1
2
|
import { __awaiter } from 'tslib';
|
|
2
3
|
import logger from '@cantinc/logger';
|
|
3
4
|
import commonjs from '@rollup/plugin-commonjs';
|
|
@@ -37,16 +38,6 @@ import { Extract } from './extract.mjs';
|
|
|
37
38
|
import { reporter, convertIndexFile, getFile } from './helpers.mjs';
|
|
38
39
|
import { updateDotenv } from './updateDotenv.mjs';
|
|
39
40
|
|
|
40
|
-
;(function () {
|
|
41
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.3"};
|
|
42
|
-
if (typeof process === 'undefined') {
|
|
43
|
-
globalThis.process = { env: env };
|
|
44
|
-
} else if (process.env) {
|
|
45
|
-
Object.assign(process.env, env);
|
|
46
|
-
} else {
|
|
47
|
-
process.env = env;
|
|
48
|
-
}
|
|
49
|
-
})();
|
|
50
41
|
const livereload = require('rollup-plugin-livereload');
|
|
51
42
|
const { string } = require('rollup-plugin-string');
|
|
52
43
|
const { exec, spawn } = require('child_process');
|
|
@@ -180,7 +171,7 @@ class InnetJS {
|
|
|
180
171
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
181
172
|
url: true,
|
|
182
173
|
plugins: [autoprefixer()],
|
|
183
|
-
|
|
174
|
+
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
184
175
|
sourceMap: this.sourcemap,
|
|
185
176
|
minimize: true,
|
|
186
177
|
}), string({
|
|
@@ -281,7 +272,7 @@ class InnetJS {
|
|
|
281
272
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
282
273
|
url: true,
|
|
283
274
|
plugins: [autoprefixer()],
|
|
284
|
-
|
|
275
|
+
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
285
276
|
sourceMap: true,
|
|
286
277
|
}), string({
|
|
287
278
|
include: '**/*.*',
|
|
@@ -422,9 +413,8 @@ class InnetJS {
|
|
|
422
413
|
styles({
|
|
423
414
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
424
415
|
plugins: [autoprefixer()],
|
|
425
|
-
|
|
416
|
+
autoModules: cssModules ? (id) => !id.includes('.global.') : true,
|
|
426
417
|
minimize: true,
|
|
427
|
-
autoModules: true,
|
|
428
418
|
}),
|
|
429
419
|
nodeResolve(),
|
|
430
420
|
external(),
|