@unpackjs/core 2.3.8 → 2.3.9

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.
@@ -55,7 +55,7 @@ class JsMinifyPlugin {
55
55
  apply(compiler) {
56
56
  const meta = JSON.stringify({
57
57
  name: PLUGIN_NAME,
58
- version: "2.3.8",
58
+ version: "2.3.9",
59
59
  options: this.minifyOptions
60
60
  });
61
61
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
@@ -19,7 +19,7 @@ class JsMinifyPlugin {
19
19
  apply(compiler) {
20
20
  const meta = JSON.stringify({
21
21
  name: PLUGIN_NAME,
22
- version: "2.3.8",
22
+ version: "2.3.9",
23
23
  options: this.minifyOptions
24
24
  });
25
25
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
@@ -68,7 +68,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
68
68
  };
69
69
  const _context = {
70
70
  callerName,
71
- version: "2.3.8"
71
+ version: "2.3.9"
72
72
  };
73
73
  let { plugins, bundlerConfig, ...rest } = (0, external_utils_cjs_namespaceObject.mergeConfig)(defaultConfig, config);
74
74
  for (const plugin of (0, external_plugin_cjs_namespaceObject.getNormalizedPluginsByHook)('config', plugins))rest = await plugin.config(rest, {
@@ -85,7 +85,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
85
85
  return {
86
86
  build: async ({ watch } = {})=>{
87
87
  (0, external_utils_cjs_namespaceObject.setNodeEnv)(watch ? 'development' : 'production');
88
- console.log(external_colors_cjs_namespaceObject.colors.rainbow(`${callerName} v2.3.8`), external_colors_cjs_namespaceObject.colors.green(`building for ${watch ? 'development' : 'production'}...`));
88
+ console.log(external_colors_cjs_namespaceObject.colors.rainbow(`${callerName} v2.3.9`), external_colors_cjs_namespaceObject.colors.green(`building for ${watch ? 'development' : 'production'}...`));
89
89
  const config = await resolveConfig();
90
90
  (0, index_cjs_namespaceObject.unpackBuild)(config);
91
91
  },
@@ -42,7 +42,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
42
42
  };
43
43
  const _context = {
44
44
  callerName,
45
- version: "2.3.8"
45
+ version: "2.3.9"
46
46
  };
47
47
  let { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
48
48
  for (const plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
@@ -59,7 +59,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
59
59
  return {
60
60
  build: async ({ watch } = {})=>{
61
61
  setNodeEnv(watch ? 'development' : 'production');
62
- console.log(colors.rainbow(`${callerName} v2.3.8`), colors.green(`building for ${watch ? 'development' : 'production'}...`));
62
+ console.log(colors.rainbow(`${callerName} v2.3.9`), colors.green(`building for ${watch ? 'development' : 'production'}...`));
63
63
  const config = await resolveConfig();
64
64
  unpackBuild(config);
65
65
  },
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  var __webpack_modules__ = {
3
- "./colors": function(module) {
3
+ "src/colors": function(module) {
4
4
  module.exports = require("./colors.cjs");
5
5
  },
6
6
  "./config": function(module) {
@@ -93,7 +93,7 @@ var __webpack_exports__ = {};
93
93
  var html_webpack_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(html_webpack_plugin__WEBPACK_IMPORTED_MODULE_1__);
94
94
  var webpack__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("webpack");
95
95
  var webpack__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(webpack__WEBPACK_IMPORTED_MODULE_2__);
96
- var _colors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./colors");
96
+ var _colors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("src/colors");
97
97
  var __WEBPACK_REEXPORT_OBJECT__ = {};
98
98
  for(var __WEBPACK_IMPORT_KEY__ in _colors__WEBPACK_IMPORTED_MODULE_3__)if ([
99
99
  "webpack",
@@ -41,6 +41,7 @@ function _define_property(obj, key, value) {
41
41
  }
42
42
  class ProgressBar {
43
43
  update({ current: originalCurrent, message = '' }) {
44
+ if ((0, external_utils_cjs_namespaceObject.isCI)()) return;
44
45
  const { columns: terminalWidth } = process.stdout;
45
46
  let current = originalCurrent;
46
47
  if (originalCurrent >= 0.98) current = 1;
@@ -1 +1 @@
1
- {"version":3,"file":"progressBar.d.ts","sourceRoot":"","sources":["../src/progressBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD,qBAAa,WAAW;IACtB,MAAM,SAAiB;IACvB,gBAAgB,mBAAyB;IAEzC,MAAM,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,OAAY,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IAcxF,IAAI;CAGL"}
1
+ {"version":3,"file":"progressBar.d.ts","sourceRoot":"","sources":["../src/progressBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD,qBAAa,WAAW;IACtB,MAAM,SAAiB;IACvB,gBAAgB,mBAAyB;IAEzC,MAAM,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,OAAY,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IAexF,IAAI;CAGL"}
@@ -2,7 +2,7 @@ import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
3
  import { colors } from "./colors.js";
4
4
  import { LoadingAnimation } from "./loadingAnimation.js";
5
- import { logUpdate } from "./utils.js";
5
+ import { isCI, logUpdate } from "./utils.js";
6
6
  function _define_property(obj, key, value) {
7
7
  if (key in obj) Object.defineProperty(obj, key, {
8
8
  value: value,
@@ -15,6 +15,7 @@ function _define_property(obj, key, value) {
15
15
  }
16
16
  class ProgressBar {
17
17
  update({ current: originalCurrent, message = '' }) {
18
+ if (isCI()) return;
18
19
  const { columns: terminalWidth } = process.stdout;
19
20
  let current = originalCurrent;
20
21
  if (originalCurrent >= 0.98) current = 1;
package/dist/run/dev.cjs CHANGED
@@ -87,7 +87,7 @@ async function unpackDev(originalUnpackConfig) {
87
87
  };
88
88
  const server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
89
89
  await server.start();
90
- external_logger_cjs_namespaceObject.logger.greet(` ${external_colors_cjs_namespaceObject.colors.green(`${external_colors_cjs_namespaceObject.colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.8`)} ${external_colors_cjs_namespaceObject.colors.dim(`ready in ${external_colors_cjs_namespaceObject.colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
90
+ external_logger_cjs_namespaceObject.logger.greet(` ${external_colors_cjs_namespaceObject.colors.green(`${external_colors_cjs_namespaceObject.colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.9`)} ${external_colors_cjs_namespaceObject.colors.dim(`ready in ${external_colors_cjs_namespaceObject.colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
91
91
  printAddressUrls(port);
92
92
  external_logger_cjs_namespaceObject.logger.wait('building...');
93
93
  global.__unpack_dev_server_started = true;
package/dist/run/dev.js CHANGED
@@ -50,7 +50,7 @@ async function unpackDev(originalUnpackConfig) {
50
50
  };
51
51
  const server = new webpack_dev_server(devServerOptions, compiler);
52
52
  await server.start();
53
- logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.8`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
53
+ logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.9`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
54
54
  printAddressUrls(port);
55
55
  logger.wait('building...');
56
56
  global.__unpack_dev_server_started = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {