innetjs 2.4.0-alpha.13 → 2.4.0-alpha.14
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 +1 -1
- package/_virtual/_rollup-plugin-process-env.mjs +1 -1
- package/bin/innet +12 -15
- package/constants.d.ts +1 -0
- package/constants.js +11 -13
- package/constants.mjs +11 -14
- package/index.js +1 -1
- package/index.mjs +2 -2
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -75,26 +75,23 @@ const lintInclude = [
|
|
|
75
75
|
'**/*.js',
|
|
76
76
|
'**/*.jsx',
|
|
77
77
|
];
|
|
78
|
-
const
|
|
79
|
-
'**/*.ts',
|
|
80
|
-
'**/*.tsx',
|
|
81
|
-
'**/*.js',
|
|
82
|
-
'**/*.jsx',
|
|
83
|
-
'**/*.json',
|
|
84
|
-
'**/*.css',
|
|
85
|
-
'**/*.scss',
|
|
86
|
-
'**/*.webp',
|
|
78
|
+
const imageInclude = [
|
|
87
79
|
'**/*.gif',
|
|
88
80
|
'**/*.png',
|
|
89
81
|
'**/*.jpeg',
|
|
90
82
|
'**/*.jpg',
|
|
91
83
|
'**/*.svg',
|
|
92
84
|
];
|
|
85
|
+
const stringExcludeDom = [
|
|
86
|
+
...lintInclude,
|
|
87
|
+
'**/*.json',
|
|
88
|
+
'**/*.css',
|
|
89
|
+
'**/*.scss',
|
|
90
|
+
'**/*.webp',
|
|
91
|
+
...imageInclude,
|
|
92
|
+
];
|
|
93
93
|
const stringExcludeNode = [
|
|
94
|
-
|
|
95
|
-
'**/*.tsx',
|
|
96
|
-
'**/*.js',
|
|
97
|
-
'**/*.jsx',
|
|
94
|
+
...lintInclude,
|
|
98
95
|
'**/*.json',
|
|
99
96
|
];
|
|
100
97
|
|
|
@@ -415,7 +412,7 @@ class InnetJS {
|
|
|
415
412
|
// @ts-expect-error
|
|
416
413
|
options.output.format = 'es';
|
|
417
414
|
options.plugins.push(staticImport__default["default"]({
|
|
418
|
-
include:
|
|
415
|
+
include: imageInclude.map(img => `src/${img}`),
|
|
419
416
|
}), pluginNodeResolve.nodeResolve({
|
|
420
417
|
browser: true,
|
|
421
418
|
}), polyfill__default["default"](), styles__default["default"]({
|
|
@@ -781,7 +778,7 @@ class InnetJS {
|
|
|
781
778
|
}
|
|
782
779
|
|
|
783
780
|
(function () {
|
|
784
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.4.0-alpha.
|
|
781
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.4.0-alpha.14"};
|
|
785
782
|
if (typeof process === 'undefined') {
|
|
786
783
|
globalThis.process = { env: env };
|
|
787
784
|
} else if (process.env) {
|
package/constants.d.ts
CHANGED
package/constants.js
CHANGED
|
@@ -8,29 +8,27 @@ const lintInclude = [
|
|
|
8
8
|
'**/*.js',
|
|
9
9
|
'**/*.jsx',
|
|
10
10
|
];
|
|
11
|
-
const
|
|
12
|
-
'**/*.ts',
|
|
13
|
-
'**/*.tsx',
|
|
14
|
-
'**/*.js',
|
|
15
|
-
'**/*.jsx',
|
|
16
|
-
'**/*.json',
|
|
17
|
-
'**/*.css',
|
|
18
|
-
'**/*.scss',
|
|
19
|
-
'**/*.webp',
|
|
11
|
+
const imageInclude = [
|
|
20
12
|
'**/*.gif',
|
|
21
13
|
'**/*.png',
|
|
22
14
|
'**/*.jpeg',
|
|
23
15
|
'**/*.jpg',
|
|
24
16
|
'**/*.svg',
|
|
25
17
|
];
|
|
18
|
+
const stringExcludeDom = [
|
|
19
|
+
...lintInclude,
|
|
20
|
+
'**/*.json',
|
|
21
|
+
'**/*.css',
|
|
22
|
+
'**/*.scss',
|
|
23
|
+
'**/*.webp',
|
|
24
|
+
...imageInclude,
|
|
25
|
+
];
|
|
26
26
|
const stringExcludeNode = [
|
|
27
|
-
|
|
28
|
-
'**/*.tsx',
|
|
29
|
-
'**/*.js',
|
|
30
|
-
'**/*.jsx',
|
|
27
|
+
...lintInclude,
|
|
31
28
|
'**/*.json',
|
|
32
29
|
];
|
|
33
30
|
|
|
31
|
+
exports.imageInclude = imageInclude;
|
|
34
32
|
exports.lintInclude = lintInclude;
|
|
35
33
|
exports.stringExcludeDom = stringExcludeDom;
|
|
36
34
|
exports.stringExcludeNode = stringExcludeNode;
|
package/constants.mjs
CHANGED
|
@@ -4,27 +4,24 @@ const lintInclude = [
|
|
|
4
4
|
'**/*.js',
|
|
5
5
|
'**/*.jsx',
|
|
6
6
|
];
|
|
7
|
-
const
|
|
8
|
-
'**/*.ts',
|
|
9
|
-
'**/*.tsx',
|
|
10
|
-
'**/*.js',
|
|
11
|
-
'**/*.jsx',
|
|
12
|
-
'**/*.json',
|
|
13
|
-
'**/*.css',
|
|
14
|
-
'**/*.scss',
|
|
15
|
-
'**/*.webp',
|
|
7
|
+
const imageInclude = [
|
|
16
8
|
'**/*.gif',
|
|
17
9
|
'**/*.png',
|
|
18
10
|
'**/*.jpeg',
|
|
19
11
|
'**/*.jpg',
|
|
20
12
|
'**/*.svg',
|
|
21
13
|
];
|
|
14
|
+
const stringExcludeDom = [
|
|
15
|
+
...lintInclude,
|
|
16
|
+
'**/*.json',
|
|
17
|
+
'**/*.css',
|
|
18
|
+
'**/*.scss',
|
|
19
|
+
'**/*.webp',
|
|
20
|
+
...imageInclude,
|
|
21
|
+
];
|
|
22
22
|
const stringExcludeNode = [
|
|
23
|
-
|
|
24
|
-
'**/*.tsx',
|
|
25
|
-
'**/*.js',
|
|
26
|
-
'**/*.jsx',
|
|
23
|
+
...lintInclude,
|
|
27
24
|
'**/*.json',
|
|
28
25
|
];
|
|
29
26
|
|
|
30
|
-
export { lintInclude, stringExcludeDom, stringExcludeNode };
|
|
27
|
+
export { imageInclude, lintInclude, stringExcludeDom, stringExcludeNode };
|
package/index.js
CHANGED
|
@@ -303,7 +303,7 @@ class InnetJS {
|
|
|
303
303
|
// @ts-expect-error
|
|
304
304
|
options.output.format = 'es';
|
|
305
305
|
options.plugins.push(staticImport__default["default"]({
|
|
306
|
-
include:
|
|
306
|
+
include: constants.imageInclude.map(img => `src/${img}`),
|
|
307
307
|
}), pluginNodeResolve.nodeResolve({
|
|
308
308
|
browser: true,
|
|
309
309
|
}), polyfill__default["default"](), styles__default["default"]({
|
package/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import { terser } from 'rollup-plugin-terser';
|
|
|
33
33
|
import typescript from 'rollup-plugin-typescript2';
|
|
34
34
|
import tmp from 'tmp';
|
|
35
35
|
import { promisify } from 'node:util';
|
|
36
|
-
import { stringExcludeNode, stringExcludeDom, lintInclude } from './constants.mjs';
|
|
36
|
+
import { stringExcludeNode, stringExcludeDom, imageInclude, lintInclude } from './constants.mjs';
|
|
37
37
|
import { Extract } from './extract.mjs';
|
|
38
38
|
import { reporter, convertIndexFile, getFile } from './helpers.mjs';
|
|
39
39
|
import { updateDotenv } from './updateDotenv.mjs';
|
|
@@ -268,7 +268,7 @@ class InnetJS {
|
|
|
268
268
|
// @ts-expect-error
|
|
269
269
|
options.output.format = 'es';
|
|
270
270
|
options.plugins.push(staticImport({
|
|
271
|
-
include:
|
|
271
|
+
include: imageInclude.map(img => `src/${img}`),
|
|
272
272
|
}), nodeResolve({
|
|
273
273
|
browser: true,
|
|
274
274
|
}), polyfill(), styles({
|