@project-ajax/create 0.0.36 → 0.0.38
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 +1 -1
- package/dist/index.js +5 -1
- package/package.json +2 -2
- package/template/README.md +23 -6
- package/template/src/index.ts +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,6 +11,10 @@ import chalk from "chalk";
|
|
|
11
11
|
import ora from "ora";
|
|
12
12
|
var __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
var __dirname = path.dirname(__filename);
|
|
14
|
+
function detectPackageManager() {
|
|
15
|
+
const userAgent = process.env.npm_config_user_agent ?? "";
|
|
16
|
+
return userAgent.includes("bun/") ? "bun" : "npm";
|
|
17
|
+
}
|
|
14
18
|
async function runCreate() {
|
|
15
19
|
try {
|
|
16
20
|
await run();
|
|
@@ -111,7 +115,7 @@ Use --force to overwrite.`
|
|
|
111
115
|
default: true
|
|
112
116
|
});
|
|
113
117
|
}
|
|
114
|
-
const packageManager = values.bun ? "bun" :
|
|
118
|
+
const packageManager = values.bun ? "bun" : detectPackageManager();
|
|
115
119
|
let shouldInstall = false;
|
|
116
120
|
if (values.install) {
|
|
117
121
|
shouldInstall = true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@project-ajax/create",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Initialize a new Notion
|
|
3
|
+
"version": "0.0.38",
|
|
4
|
+
"description": "Initialize a new Notion Workers extensions repo.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-ajax": "dist/index.js"
|
|
7
7
|
},
|
package/template/README.md
CHANGED
|
@@ -264,6 +264,29 @@ Build and upload your worker bundle:
|
|
|
264
264
|
npx workers deploy
|
|
265
265
|
```
|
|
266
266
|
|
|
267
|
+
### Output format
|
|
268
|
+
Some commands support alternate output formats. When supported, these flags
|
|
269
|
+
are mutually exclusive:
|
|
270
|
+
|
|
271
|
+
- `--plain` for tab-separated output (default when stdout is piped)
|
|
272
|
+
- `--json` for JSON output
|
|
273
|
+
- `--human` for human-friendly output (default when stdout is a TTY)
|
|
274
|
+
|
|
275
|
+
List commands currently support these flags.
|
|
276
|
+
|
|
277
|
+
```shell
|
|
278
|
+
npx workers list --plain
|
|
279
|
+
npx workers list --json
|
|
280
|
+
npx workers list --human
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### `npx workers list`
|
|
284
|
+
List workers in the active space:
|
|
285
|
+
|
|
286
|
+
```shell
|
|
287
|
+
npx workers list
|
|
288
|
+
```
|
|
289
|
+
|
|
267
290
|
### `npx workers exec`
|
|
268
291
|
Run a sync or tool capability:
|
|
269
292
|
|
|
@@ -340,12 +363,6 @@ List recent runs:
|
|
|
340
363
|
npx workers runs list
|
|
341
364
|
```
|
|
342
365
|
|
|
343
|
-
Use `--plain` for machine-readable tab-separated output:
|
|
344
|
-
|
|
345
|
-
```shell
|
|
346
|
-
npx workers runs list --plain
|
|
347
|
-
```
|
|
348
|
-
|
|
349
366
|
### `npx workers runs logs`
|
|
350
367
|
Fetch logs for a run:
|
|
351
368
|
|
package/template/src/index.ts
CHANGED