@serwist/cli 10.0.0-preview.13 → 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 +1 -1
- package/dist/bin.js +3 -1
- package/package.json +5 -5
package/dist/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"
|
|
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(
|
|
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.
|
|
3
|
+
"version": "10.0.0-preview.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The command line interface of Serwist.",
|
|
6
6
|
"files": [
|
|
@@ -40,17 +40,17 @@
|
|
|
40
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.
|
|
44
|
-
"@serwist/utils": "10.0.0-preview.
|
|
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
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.
|
|
51
|
+
"rollup": "4.49.0",
|
|
52
52
|
"typescript": "5.9.2",
|
|
53
|
-
"@serwist/configs": "10.0.0-preview.
|
|
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",
|