@project-ajax/create 0.0.1 → 0.0.8
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/{index.mjs → index.js} +12 -4
- package/package.json +4 -1
|
@@ -8,7 +8,13 @@ import chalk from "chalk";
|
|
|
8
8
|
import { execa } from "execa";
|
|
9
9
|
import ora from "ora";
|
|
10
10
|
import prompts from "prompts";
|
|
11
|
-
run()
|
|
11
|
+
run().then(() => {
|
|
12
|
+
process.exit(0);
|
|
13
|
+
}).catch((err) => {
|
|
14
|
+
console.error(chalk.red(`
|
|
15
|
+
${err.message}`));
|
|
16
|
+
process.exit(1);
|
|
17
|
+
});
|
|
12
18
|
async function run() {
|
|
13
19
|
console.log(chalk.bold.cyan("\n\u{1F680} Create a new Project Ajax worker\n"));
|
|
14
20
|
const { directoryName, projectName } = await prompts([
|
|
@@ -45,9 +51,11 @@ async function run() {
|
|
|
45
51
|
printNextSteps(directoryName);
|
|
46
52
|
} catch (err) {
|
|
47
53
|
spinner.fail("Failed to create project.");
|
|
48
|
-
console.error(
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
console.error(
|
|
55
|
+
chalk.red(`
|
|
56
|
+
${err instanceof Error ? err.message : String(err)}`)
|
|
57
|
+
);
|
|
58
|
+
if (err instanceof Error && (err.message.includes("Permission denied") || err.message.includes("publickey"))) {
|
|
51
59
|
console.log(
|
|
52
60
|
chalk.yellow("\n\u26A0\uFE0F SSH authentication failed. Make sure you have:")
|
|
53
61
|
);
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@project-ajax/create",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Initialize a new Notion Project Ajax extensions repo.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-ajax": "dist/index.mjs"
|
|
7
7
|
},
|
|
8
|
+
"type": "module",
|
|
8
9
|
"scripts": {
|
|
9
10
|
"build": "tsup"
|
|
10
11
|
},
|
|
@@ -30,6 +31,8 @@
|
|
|
30
31
|
"prompts": "^2.4.2"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
34
|
+
"@types/node": "^22.19.0",
|
|
35
|
+
"@types/prompts": "^2.4.9",
|
|
33
36
|
"tsup": "^8.5.0",
|
|
34
37
|
"typescript": "^5.9.3"
|
|
35
38
|
}
|