@erudit-js/cli 3.0.0-dev.17 → 3.0.0-dev.18
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/README.md +12 -12
- package/bin/erudit-cli.mjs +5 -5
- package/dist/index.mjs +7 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# 📟 Erudit CLI
|
|
2
|
-
|
|
3
|
-
Command Line Interface for [Erudit](https://github.com/erudit-js/erudit).
|
|
4
|
-
|
|
5
|
-
CLI is accessible via `erudit` or `erudit-cli` commands.
|
|
6
|
-
|
|
7
|
-
## Commands
|
|
8
|
-
|
|
9
|
-
- `init`
|
|
10
|
-
- `dev`
|
|
11
|
-
- `build`
|
|
12
|
-
- `preview`
|
|
1
|
+
# 📟 Erudit CLI
|
|
2
|
+
|
|
3
|
+
Command Line Interface for [Erudit](https://github.com/erudit-js/erudit).
|
|
4
|
+
|
|
5
|
+
CLI is accessible via `erudit` or `erudit-cli` commands.
|
|
6
|
+
|
|
7
|
+
## Commands
|
|
8
|
+
|
|
9
|
+
- `init`
|
|
10
|
+
- `dev`
|
|
11
|
+
- `build`
|
|
12
|
+
- `preview`
|
package/bin/erudit-cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { run } from '../dist/index.mjs';
|
|
4
|
-
|
|
5
|
-
run();
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { run } from '../dist/index.mjs';
|
|
4
|
+
|
|
5
|
+
run();
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import * as fs from 'node:fs/promises';
|
|
|
8
8
|
import * as path from 'node:path';
|
|
9
9
|
import { spawn } from 'node:child_process';
|
|
10
10
|
|
|
11
|
-
const version = "3.0.0-dev.
|
|
11
|
+
const version = "3.0.0-dev.18";
|
|
12
12
|
|
|
13
13
|
function resolvePath(path) {
|
|
14
14
|
path = resolvePaths(path);
|
|
@@ -78,6 +78,12 @@ function logCommand(command) {
|
|
|
78
78
|
async function alias2Relative(baseDir, toReplaceDir) {
|
|
79
79
|
baseDir = resolvePaths(baseDir);
|
|
80
80
|
toReplaceDir = resolvePaths(toReplaceDir);
|
|
81
|
+
if (baseDir.search("/node_modules/") === -1) {
|
|
82
|
+
console.log(
|
|
83
|
+
`Base directory ${baseDir} is not in node_modules. Skipping...`
|
|
84
|
+
);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
81
87
|
if (!existsSync(baseDir)) {
|
|
82
88
|
console.log(`Base directory ${baseDir} does not exist. Skipping...`);
|
|
83
89
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erudit-js/cli",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "📟 Command Line Interface for Erudit",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@erudit-js/cog": "3.0.0-dev.
|
|
31
|
+
"@erudit-js/cog": "3.0.0-dev.18",
|
|
32
32
|
"chalk": "^5.4.1",
|
|
33
33
|
"citty": "^0.1.6",
|
|
34
34
|
"consola": "^3.4.0"
|