@serwist/cli 9.0.12 → 10.0.0-preview.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/bin.js +1 -4
- package/package.json +5 -5
package/dist/bin.js
CHANGED
|
@@ -12,6 +12,7 @@ import chalk from 'chalk';
|
|
|
12
12
|
import { statSync, writeFileSync } from 'node:fs';
|
|
13
13
|
import stringifyObject from 'stringify-object';
|
|
14
14
|
import { input, checkbox, select, Separator } from '@inquirer/prompts';
|
|
15
|
+
import { toUnix } from '@serwist/utils';
|
|
15
16
|
|
|
16
17
|
const constants = {
|
|
17
18
|
defaultConfigFile: "serwist.config.js",
|
|
@@ -58,10 +59,6 @@ const readConfig = async (configFile)=>{
|
|
|
58
59
|
return (await import(configFile)).default;
|
|
59
60
|
};
|
|
60
61
|
|
|
61
|
-
const toUnix = (p)=>{
|
|
62
|
-
return p.replace(/\\/g, "/").replace(/(?<!^)\/+/g, "/");
|
|
63
|
-
};
|
|
64
|
-
|
|
65
62
|
const getSubdirectories = async ()=>{
|
|
66
63
|
return await glob("*/", {
|
|
67
64
|
ignore: constants.ignoredDirectories.map((directory)=>`${directory}/`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-preview.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The command line interface of Serwist.",
|
|
6
6
|
"files": [
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"pretty-bytes": "6.1.1",
|
|
41
41
|
"stringify-object": "5.0.0",
|
|
42
42
|
"update-notifier": "7.3.1",
|
|
43
|
-
"@serwist/build": "
|
|
43
|
+
"@serwist/build": "10.0.0-preview.1",
|
|
44
|
+
"@serwist/utils": "10.0.0-preview.1"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@types/common-tags": "1.8.4",
|
|
@@ -48,9 +49,8 @@
|
|
|
48
49
|
"@types/stringify-object": "4.0.5",
|
|
49
50
|
"@types/update-notifier": "6.0.8",
|
|
50
51
|
"rollup": "4.34.8",
|
|
51
|
-
"typescript": "5.
|
|
52
|
-
"@serwist/configs": "
|
|
53
|
-
"@serwist/utils": "9.0.12"
|
|
52
|
+
"typescript": "5.7.3",
|
|
53
|
+
"@serwist/configs": "10.0.0-preview.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",
|