create-docus 2.0.0-beta.1 → 2.0.0
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/main.mjs +5 -1
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// main.ts
|
|
4
|
+
import * as dotenv from "dotenv";
|
|
5
|
+
|
|
3
6
|
// cli.ts
|
|
4
7
|
import { resolve } from "path";
|
|
5
8
|
import { defineCommand, runMain } from "citty";
|
|
@@ -20,7 +23,7 @@ function createCLI(opts) {
|
|
|
20
23
|
async setup({ args }) {
|
|
21
24
|
const dir = resolve(args.dir);
|
|
22
25
|
const { runCommand } = await import("nuxi");
|
|
23
|
-
await runCommand("init", [dir, "-t", "gh:nuxtlabs/docus/.starters/default
|
|
26
|
+
await runCommand("init", [dir, "-t", "gh:nuxtlabs/docus/.starters/default"]);
|
|
24
27
|
}
|
|
25
28
|
});
|
|
26
29
|
return {
|
|
@@ -29,6 +32,7 @@ function createCLI(opts) {
|
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
// main.ts
|
|
35
|
+
dotenv.config();
|
|
32
36
|
var cli = createCLI({
|
|
33
37
|
name: "create-docus",
|
|
34
38
|
description: "Create a new Docus documentation project",
|