innetjs 2.2.14 → 2.2.15
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 +16 -9
- package/index.js +16 -9
- package/index.mjs +16 -9
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -275,31 +275,37 @@ class InnetJS {
|
|
|
275
275
|
}
|
|
276
276
|
yield logger__default["default"].start('Remove build', () => fs__default["default"].remove(this.buildFolder));
|
|
277
277
|
const pkg = node && (yield this.getPackage());
|
|
278
|
-
const
|
|
278
|
+
const options = {
|
|
279
279
|
input,
|
|
280
280
|
preserveEntrySignatures: 'strict',
|
|
281
281
|
plugins: [
|
|
282
282
|
commonjs__default["default"](),
|
|
283
283
|
json__default["default"](),
|
|
284
|
-
typescript__default["default"](
|
|
284
|
+
typescript__default["default"]({
|
|
285
|
+
tsconfigOverride: {
|
|
286
|
+
compilerOptions: {
|
|
287
|
+
declaration: false,
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
}),
|
|
285
291
|
jsx__default["default"](),
|
|
286
292
|
],
|
|
287
293
|
};
|
|
288
|
-
this.withLint(
|
|
294
|
+
this.withLint(options);
|
|
289
295
|
const outputOptions = {
|
|
290
296
|
dir: this.buildFolder,
|
|
291
297
|
sourcemap: this.sourcemap,
|
|
292
298
|
};
|
|
293
299
|
if (node) {
|
|
294
300
|
outputOptions.format = 'cjs';
|
|
295
|
-
|
|
296
|
-
|
|
301
|
+
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
302
|
+
options.plugins.push(string({
|
|
297
303
|
include: '**/*.*',
|
|
298
304
|
exclude: stringExcludeNode,
|
|
299
305
|
}));
|
|
300
306
|
}
|
|
301
307
|
else {
|
|
302
|
-
|
|
308
|
+
options.plugins.push(pluginNodeResolve.nodeResolve({
|
|
303
309
|
browser: true,
|
|
304
310
|
}), polyfill__default["default"](), image__default["default"](), styles__default["default"]({
|
|
305
311
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
@@ -320,9 +326,9 @@ class InnetJS {
|
|
|
320
326
|
}),
|
|
321
327
|
];
|
|
322
328
|
}
|
|
323
|
-
this.withEnv(
|
|
329
|
+
this.withEnv(options);
|
|
324
330
|
yield logger__default["default"].start('Build production bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
325
|
-
const bundle = yield rollup__default["default"].rollup(
|
|
331
|
+
const bundle = yield rollup__default["default"].rollup(options);
|
|
326
332
|
yield bundle.write(outputOptions);
|
|
327
333
|
yield bundle.close();
|
|
328
334
|
if (!node) {
|
|
@@ -369,6 +375,7 @@ class InnetJS {
|
|
|
369
375
|
typescript__default["default"]({
|
|
370
376
|
tsconfigOverride: {
|
|
371
377
|
compilerOptions: {
|
|
378
|
+
declaration: false,
|
|
372
379
|
sourceMap: true,
|
|
373
380
|
},
|
|
374
381
|
},
|
|
@@ -758,7 +765,7 @@ class InnetJS {
|
|
|
758
765
|
}
|
|
759
766
|
|
|
760
767
|
(function () {
|
|
761
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.2.
|
|
768
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.2.15"};
|
|
762
769
|
if (typeof process === 'undefined') {
|
|
763
770
|
process = { env };
|
|
764
771
|
} else if (process.env) {
|
package/index.js
CHANGED
|
@@ -71,7 +71,7 @@ var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
|
|
|
71
71
|
var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
|
|
72
72
|
|
|
73
73
|
(function () {
|
|
74
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.2.
|
|
74
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.2.15"};
|
|
75
75
|
if (typeof process === 'undefined') {
|
|
76
76
|
process = { env };
|
|
77
77
|
} else if (process.env) {
|
|
@@ -174,31 +174,37 @@ class InnetJS {
|
|
|
174
174
|
}
|
|
175
175
|
yield logger__default["default"].start('Remove build', () => fs__default["default"].remove(this.buildFolder));
|
|
176
176
|
const pkg = node && (yield this.getPackage());
|
|
177
|
-
const
|
|
177
|
+
const options = {
|
|
178
178
|
input,
|
|
179
179
|
preserveEntrySignatures: 'strict',
|
|
180
180
|
plugins: [
|
|
181
181
|
commonjs__default["default"](),
|
|
182
182
|
json__default["default"](),
|
|
183
|
-
typescript__default["default"](
|
|
183
|
+
typescript__default["default"]({
|
|
184
|
+
tsconfigOverride: {
|
|
185
|
+
compilerOptions: {
|
|
186
|
+
declaration: false,
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
}),
|
|
184
190
|
jsx__default["default"](),
|
|
185
191
|
],
|
|
186
192
|
};
|
|
187
|
-
this.withLint(
|
|
193
|
+
this.withLint(options);
|
|
188
194
|
const outputOptions = {
|
|
189
195
|
dir: this.buildFolder,
|
|
190
196
|
sourcemap: this.sourcemap,
|
|
191
197
|
};
|
|
192
198
|
if (node) {
|
|
193
199
|
outputOptions.format = 'cjs';
|
|
194
|
-
|
|
195
|
-
|
|
200
|
+
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
201
|
+
options.plugins.push(string({
|
|
196
202
|
include: '**/*.*',
|
|
197
203
|
exclude: constants.stringExcludeNode,
|
|
198
204
|
}));
|
|
199
205
|
}
|
|
200
206
|
else {
|
|
201
|
-
|
|
207
|
+
options.plugins.push(pluginNodeResolve.nodeResolve({
|
|
202
208
|
browser: true,
|
|
203
209
|
}), polyfill__default["default"](), image__default["default"](), styles__default["default"]({
|
|
204
210
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
@@ -219,9 +225,9 @@ class InnetJS {
|
|
|
219
225
|
}),
|
|
220
226
|
];
|
|
221
227
|
}
|
|
222
|
-
this.withEnv(
|
|
228
|
+
this.withEnv(options);
|
|
223
229
|
yield logger__default["default"].start('Build production bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
224
|
-
const bundle = yield rollup__default["default"].rollup(
|
|
230
|
+
const bundle = yield rollup__default["default"].rollup(options);
|
|
225
231
|
yield bundle.write(outputOptions);
|
|
226
232
|
yield bundle.close();
|
|
227
233
|
if (!node) {
|
|
@@ -268,6 +274,7 @@ class InnetJS {
|
|
|
268
274
|
typescript__default["default"]({
|
|
269
275
|
tsconfigOverride: {
|
|
270
276
|
compilerOptions: {
|
|
277
|
+
declaration: false,
|
|
271
278
|
sourceMap: true,
|
|
272
279
|
},
|
|
273
280
|
},
|
package/index.mjs
CHANGED
|
@@ -37,7 +37,7 @@ import { reporter, convertIndexFile, getFile } from './helpers.mjs';
|
|
|
37
37
|
import { updateDotenv } from './updateDotenv.mjs';
|
|
38
38
|
|
|
39
39
|
(function () {
|
|
40
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.2.
|
|
40
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.2.15"};
|
|
41
41
|
if (typeof process === 'undefined') {
|
|
42
42
|
process = { env };
|
|
43
43
|
} else if (process.env) {
|
|
@@ -140,31 +140,37 @@ class InnetJS {
|
|
|
140
140
|
}
|
|
141
141
|
yield logger.start('Remove build', () => fs.remove(this.buildFolder));
|
|
142
142
|
const pkg = node && (yield this.getPackage());
|
|
143
|
-
const
|
|
143
|
+
const options = {
|
|
144
144
|
input,
|
|
145
145
|
preserveEntrySignatures: 'strict',
|
|
146
146
|
plugins: [
|
|
147
147
|
commonjs(),
|
|
148
148
|
json(),
|
|
149
|
-
typescript(
|
|
149
|
+
typescript({
|
|
150
|
+
tsconfigOverride: {
|
|
151
|
+
compilerOptions: {
|
|
152
|
+
declaration: false,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
}),
|
|
150
156
|
jsx(),
|
|
151
157
|
],
|
|
152
158
|
};
|
|
153
|
-
this.withLint(
|
|
159
|
+
this.withLint(options);
|
|
154
160
|
const outputOptions = {
|
|
155
161
|
dir: this.buildFolder,
|
|
156
162
|
sourcemap: this.sourcemap,
|
|
157
163
|
};
|
|
158
164
|
if (node) {
|
|
159
165
|
outputOptions.format = 'cjs';
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
167
|
+
options.plugins.push(string({
|
|
162
168
|
include: '**/*.*',
|
|
163
169
|
exclude: stringExcludeNode,
|
|
164
170
|
}));
|
|
165
171
|
}
|
|
166
172
|
else {
|
|
167
|
-
|
|
173
|
+
options.plugins.push(nodeResolve({
|
|
168
174
|
browser: true,
|
|
169
175
|
}), polyfill(), image(), styles({
|
|
170
176
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
@@ -185,9 +191,9 @@ class InnetJS {
|
|
|
185
191
|
}),
|
|
186
192
|
];
|
|
187
193
|
}
|
|
188
|
-
this.withEnv(
|
|
194
|
+
this.withEnv(options);
|
|
189
195
|
yield logger.start('Build production bundle', () => __awaiter(this, void 0, void 0, function* () {
|
|
190
|
-
const bundle = yield rollup.rollup(
|
|
196
|
+
const bundle = yield rollup.rollup(options);
|
|
191
197
|
yield bundle.write(outputOptions);
|
|
192
198
|
yield bundle.close();
|
|
193
199
|
if (!node) {
|
|
@@ -234,6 +240,7 @@ class InnetJS {
|
|
|
234
240
|
typescript({
|
|
235
241
|
tsconfigOverride: {
|
|
236
242
|
compilerOptions: {
|
|
243
|
+
declaration: false,
|
|
237
244
|
sourceMap: true,
|
|
238
245
|
},
|
|
239
246
|
},
|