@unpackjs/core 1.4.2 → 1.4.4

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/dist/index.cjs CHANGED
@@ -26,7 +26,6 @@ var import_bundler_webpack = require("@unpackjs/bundler-webpack");
26
26
  var import_shared = require("@unpackjs/shared");
27
27
  var import_config = require("./config/index.cjs");
28
28
  var import_config2 = require("./config/index.cjs");
29
- const chalk = require("@unpackjs/shared/chalk");
30
29
  async function createService({ command, root, cliOptions }) {
31
30
  if (command === "build") {
32
31
  (0, import_shared.setNodeEnv)(cliOptions.watch ? "development" : "production");
@@ -37,8 +36,8 @@ async function createService({ command, root, cliOptions }) {
37
36
  }
38
37
  if (!(0, import_shared.isDevServer)()) {
39
38
  console.log(
40
- chalk.cyan(`unpack v${"1.4.2"}`),
41
- chalk.green(`building for ${(0, import_shared.isDev)() ? "development" : "production"}...`)
39
+ import_shared.colors.cyan(`unpack v${"1.4.4"}`),
40
+ import_shared.colors.green(`building for ${(0, import_shared.isDev)() ? "development" : "production"}...`)
42
41
  );
43
42
  }
44
43
  const unpackConfig = await (0, import_config.loadConfig)({ root, cliOptions });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EAMb,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,CAAA;AACD,wBAAsB,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,oBAAoB,iBA0CtF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EAOb,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,CAAA;AACD,wBAAsB,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,oBAAoB,iBA0CtF"}
package/dist/index.js CHANGED
@@ -10,12 +10,12 @@ var __filename = /* @__PURE__ */ getFilename();
10
10
  import { build as rspackBuild, dev as rspackDev } from "@unpackjs/bundler-rspack";
11
11
  import { build as webpackBuild, dev as webpackDev } from "@unpackjs/bundler-webpack";
12
12
  import {
13
+ colors,
13
14
  isDev,
14
15
  isDevServer,
15
16
  setDevServer,
16
17
  setNodeEnv
17
18
  } from "@unpackjs/shared";
18
- const chalk = require("@unpackjs/shared/chalk");
19
19
  import { loadConfig } from "./config/index.js";
20
20
  import { defineConfig } from "./config/index.js";
21
21
  async function createService({ command, root, cliOptions }) {
@@ -28,8 +28,8 @@ async function createService({ command, root, cliOptions }) {
28
28
  }
29
29
  if (!isDevServer()) {
30
30
  console.log(
31
- chalk.cyan(`unpack v${"1.4.2"}`),
32
- chalk.green(`building for ${isDev() ? "development" : "production"}...`)
31
+ colors.cyan(`unpack v${"1.4.4"}`),
32
+ colors.green(`building for ${isDev() ? "development" : "production"}...`)
33
33
  );
34
34
  }
35
35
  const unpackConfig = await loadConfig({ root, cliOptions });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,10 +23,10 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@unpackjs/bundler-rspack": "^1.4.2",
27
- "@unpackjs/bundler-webpack": "^1.4.2",
28
- "@unpackjs/shared": "^1.4.2",
29
- "@unpackjs/plugin-react": "^1.4.2"
26
+ "@unpackjs/bundler-rspack": "^1.4.4",
27
+ "@unpackjs/bundler-webpack": "^1.4.4",
28
+ "@unpackjs/shared": "^1.4.4",
29
+ "@unpackjs/plugin-react": "^1.4.4"
30
30
  },
31
31
  "scripts": {
32
32
  "dev": "modern build --watch",