@serwist/cli 9.2.0 → 9.2.1

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/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAyC/C,eAAO,MAAM,GAAG,GAAU,QAAQ,UAAU,CAAC,cAAc,CAAC,KAAG,OAAO,CAAC,IAAI,CAiF1E,CAAC"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAyC/C,eAAO,MAAM,GAAG,GAAU,QAAQ,UAAU,CAAC,cAAc,CAAC,KAAG,OAAO,CAAC,IAAI,CAkF1E,CAAC"}
package/dist/bin.js CHANGED
@@ -3,6 +3,7 @@ import meow from 'meow';
3
3
  import updateNotifier from 'update-notifier';
4
4
  import assert from 'node:assert';
5
5
  import path from 'node:path';
6
+ import { pathToFileURL } from 'node:url';
6
7
  import { injectManifest } from '@serwist/build';
7
8
  import chokidar from 'chokidar';
8
9
  import { glob } from 'glob';
@@ -237,9 +238,10 @@ const app = async (params)=>{
237
238
  case "inject-manifest":
238
239
  {
239
240
  const configPath = path.resolve(process.cwd(), option || constants.defaultConfigFile);
241
+ const configUrl = pathToFileURL(configPath).href;
240
242
  let config;
241
243
  try {
242
- config = await readConfig(configPath);
244
+ config = await readConfig(configUrl);
243
245
  } catch (error) {
244
246
  config = null;
245
247
  if (error instanceof Error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/cli",
3
- "version": "9.2.0",
3
+ "version": "9.2.1",
4
4
  "type": "module",
5
5
  "description": "The command line interface of Serwist.",
6
6
  "files": [
@@ -31,8 +31,8 @@
31
31
  "serwist": "cli.js"
32
32
  },
33
33
  "dependencies": {
34
- "@inquirer/prompts": "7.6.0",
35
- "chalk": "5.4.1",
34
+ "@inquirer/prompts": "7.8.4",
35
+ "chalk": "5.6.0",
36
36
  "chokidar": "4.0.3",
37
37
  "common-tags": "1.8.2",
38
38
  "glob": "10.4.5",
@@ -40,17 +40,17 @@
40
40
  "pretty-bytes": "6.1.1",
41
41
  "stringify-object": "5.0.0",
42
42
  "update-notifier": "7.3.1",
43
- "@serwist/build": "9.2.0"
43
+ "@serwist/build": "9.2.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/common-tags": "1.8.4",
47
- "@types/inquirer": "9.0.8",
47
+ "@types/inquirer": "9.0.9",
48
48
  "@types/stringify-object": "4.0.5",
49
49
  "@types/update-notifier": "6.0.8",
50
- "rollup": "4.45.1",
51
- "typescript": "5.8.3",
52
- "@serwist/configs": "9.2.0",
53
- "@serwist/utils": "9.2.0"
50
+ "rollup": "4.49.0",
51
+ "typescript": "5.9.2",
52
+ "@serwist/configs": "9.2.1",
53
+ "@serwist/utils": "9.2.1"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",