@serwist/cli 10.0.0-preview.12 → 10.0.0-preview.14

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';
@@ -234,9 +235,10 @@ const app = async (params)=>{
234
235
  case "inject-manifest":
235
236
  {
236
237
  const configPath = path.resolve(process.cwd(), option || constants.defaultConfigFile);
238
+ const configUrl = pathToFileURL(configPath).href;
237
239
  let config;
238
240
  try {
239
- config = await readConfig(configPath);
241
+ config = await readConfig(configUrl);
240
242
  } catch (error) {
241
243
  config = null;
242
244
  if (error instanceof Error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/cli",
3
- "version": "10.0.0-preview.12",
3
+ "version": "10.0.0-preview.14",
4
4
  "type": "module",
5
5
  "description": "The command line interface of Serwist.",
6
6
  "files": [
@@ -31,26 +31,26 @@
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": "11.0.3",
39
39
  "meow": "13.2.0",
40
- "pretty-bytes": "7.0.0",
40
+ "pretty-bytes": "7.0.1",
41
41
  "stringify-object": "5.0.0",
42
42
  "update-notifier": "7.3.1",
43
- "@serwist/build": "10.0.0-preview.12",
44
- "@serwist/utils": "10.0.0-preview.12"
43
+ "@serwist/build": "10.0.0-preview.14",
44
+ "@serwist/utils": "10.0.0-preview.14"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/common-tags": "1.8.4",
48
- "@types/inquirer": "9.0.8",
48
+ "@types/inquirer": "9.0.9",
49
49
  "@types/stringify-object": "4.0.5",
50
50
  "@types/update-notifier": "6.0.8",
51
- "rollup": "4.45.1",
52
- "typescript": "5.8.3",
53
- "@serwist/configs": "10.0.0-preview.12"
51
+ "rollup": "4.49.0",
52
+ "typescript": "5.9.2",
53
+ "@serwist/configs": "10.0.0-preview.14"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",