innetjs 2.2.14 → 2.2.16

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.
Files changed (4) hide show
  1. package/bin/innet +17 -10
  2. package/index.js +17 -10
  3. package/index.mjs +17 -10
  4. package/package.json +2 -2
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 inputOptions = {
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(inputOptions);
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
- inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
296
- inputOptions.plugins.push(string({
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
- inputOptions.plugins.push(pluginNodeResolve.nodeResolve({
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(inputOptions);
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(inputOptions);
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,9 +765,9 @@ class InnetJS {
758
765
  }
759
766
 
760
767
  (function () {
761
- const env = {"__INNETJS__PACKAGE_VERSION":"2.2.14"};
768
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.16"};
762
769
  if (typeof process === 'undefined') {
763
- process = { env };
770
+ globalThis.process = { env: env };
764
771
  } else if (process.env) {
765
772
  Object.assign(process.env, env);
766
773
  } else {
package/index.js CHANGED
@@ -71,9 +71,9 @@ 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.14"};
74
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.16"};
75
75
  if (typeof process === 'undefined') {
76
- process = { env };
76
+ globalThis.process = { env: env };
77
77
  } else if (process.env) {
78
78
  Object.assign(process.env, env);
79
79
  } else {
@@ -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 inputOptions = {
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(inputOptions);
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
- inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
195
- inputOptions.plugins.push(string({
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
- inputOptions.plugins.push(pluginNodeResolve.nodeResolve({
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(inputOptions);
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(inputOptions);
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,9 +37,9 @@ 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.14"};
40
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.16"};
41
41
  if (typeof process === 'undefined') {
42
- process = { env };
42
+ globalThis.process = { env: env };
43
43
  } else if (process.env) {
44
44
  Object.assign(process.env, env);
45
45
  } else {
@@ -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 inputOptions = {
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(inputOptions);
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
- inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
161
- inputOptions.plugins.push(string({
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
- inputOptions.plugins.push(nodeResolve({
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(inputOptions);
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(inputOptions);
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.2.14",
3
+ "version": "2.2.16",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
@@ -72,7 +72,7 @@
72
72
  "prompts": "^2.4.2",
73
73
  "rollup": "^2.79.1",
74
74
  "rollup-plugin-filesize": "^9.1.2",
75
- "rollup-plugin-process-env": "^1.0.3",
75
+ "rollup-plugin-process-env": "^1.0.4",
76
76
  "rollup-plugin-innet-jsx": "^1.3.2",
77
77
  "rollup-plugin-livereload": "^2.0.5",
78
78
  "rollup-plugin-node-externals": "^5.0.2",