@unpackjs/core 0.26.1 → 0.26.2

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,13 +26,14 @@ 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");
29
30
  async function createService({ command, root, cliOptions }) {
30
- const { npm_execpath } = process.env;
31
- if (!npm_execpath || npm_execpath.includes("npx-cli") || npm_execpath.includes(".bun") || npm_execpath.includes("yarn")) {
31
+ const { npm_execpath, npm_lifecycle_event } = process.env;
32
+ if (!npm_execpath || npm_lifecycle_event === "npx" || npm_execpath.includes("npx-cli") || npm_execpath.includes(".bun") || npm_execpath.includes("yarn")) {
32
33
  console.log();
33
34
  }
34
- import_shared.logger.greet(`Unpack v${"0.26.1"}
35
- `);
35
+ console.log(chalk.bold(`Unpack v${"0.26.2"}
36
+ `));
36
37
  if (command === "build") {
37
38
  (0, import_shared.setNodeEnv)(cliOptions.watch ? "development" : "production");
38
39
  (0, import_shared.setDevServer)(false);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EAKb,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,iBA8CtF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EAIb,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,iBA+CtF"}
package/dist/index.js CHANGED
@@ -10,19 +10,19 @@ 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
- logger,
14
13
  setDevServer,
15
14
  setNodeEnv
16
15
  } from "@unpackjs/shared";
16
+ const chalk = require("@unpackjs/shared/chalk");
17
17
  import { loadConfig } from "./config/index.js";
18
18
  import { defineConfig } from "./config/index.js";
19
19
  async function createService({ command, root, cliOptions }) {
20
- const { npm_execpath } = process.env;
21
- if (!npm_execpath || npm_execpath.includes("npx-cli") || npm_execpath.includes(".bun") || npm_execpath.includes("yarn")) {
20
+ const { npm_execpath, npm_lifecycle_event } = process.env;
21
+ if (!npm_execpath || npm_lifecycle_event === "npx" || npm_execpath.includes("npx-cli") || npm_execpath.includes(".bun") || npm_execpath.includes("yarn")) {
22
22
  console.log();
23
23
  }
24
- logger.greet(`Unpack v${"0.26.1"}
25
- `);
24
+ console.log(chalk.bold(`Unpack v${"0.26.2"}
25
+ `));
26
26
  if (command === "build") {
27
27
  setNodeEnv(cliOptions.watch ? "development" : "production");
28
28
  setDevServer(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "0.26.1",
3
+ "version": "0.26.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,9 +23,9 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@unpackjs/bundler-rspack": "^0.26.1",
27
- "@unpackjs/bundler-webpack": "^0.26.1",
28
- "@unpackjs/shared": "^0.26.1"
26
+ "@unpackjs/bundler-rspack": "^0.26.2",
27
+ "@unpackjs/bundler-webpack": "^0.26.2",
28
+ "@unpackjs/shared": "^0.26.2"
29
29
  },
30
30
  "scripts": {
31
31
  "dev": "modern build --watch",