@mpgd/cli 0.3.1 → 0.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Gunshi CLI for mpgd-kit starter generation and target workflow orchestration.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -76,7 +76,8 @@ pnpm devvit:playtest
76
76
 
77
77
  `devvit:login` authenticates your Reddit account. `devvit:init` performs the
78
78
  first App Directory upload/link step for the app name in
79
- `apps/target-devvit/devvit.json` using Devvit's copy-paste flow. After init, use
79
+ `apps/target-devvit/devvit.json`. Use `pnpm devvit:init:copy-paste` if browser
80
+ authorization is not available in the current terminal session. After init, use
80
81
  `pnpm devvit:playtest`, `pnpm devvit:upload`, and `pnpm devvit:publish` from
81
82
  this game root.
82
83
 
@@ -19,8 +19,9 @@ pnpm devvit:playtest
19
19
  ```
20
20
 
21
21
  `devvit:init` performs the first App Directory upload/link step with Devvit's
22
- copy-paste flow. Login proves who you are; init uploads and links the
23
- Reddit-side app record for the `name` in `devvit.json`. After that, use
22
+ logged-in account. It may open a browser for authorization. Use
23
+ `pnpm devvit:init:copy-paste` from the game root if the browser flow is not
24
+ available and the CLI asks for a manual code. After that, use
24
25
  `pnpm devvit:playtest`, `pnpm devvit:upload`, and `pnpm devvit:publish` from the
25
26
  game root.
26
27
 
@@ -4,7 +4,8 @@
4
4
  "version": "0.0.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "init": "devvit upload --copy-paste --config devvit.json",
7
+ "init": "devvit upload --config devvit.json",
8
+ "init:copy-paste": "devvit upload --copy-paste --config devvit.json",
8
9
  "dev": "devvit playtest --config devvit.json",
9
10
  "dev:prepare": "pnpm --dir ../.. build:devvit:staging",
10
11
  "dev:client": "APP_TARGET=reddit APP_VERSION=0.0.0-dev BUILD_ID=devvit-watch pnpm --dir ../.. exec vite build --mode staging --watch --outDir apps/target-devvit/dist/client",
@@ -11,6 +11,7 @@
11
11
  "build:devvit:staging": "pnpm exec mpgd target build reddit staging --targets-file ./mpgd.targets.json --kit-path ${MPGD_KIT_PATH:-__DEFAULT_KIT_PATH__}",
12
12
  "smoke:devvit": "pnpm exec mpgd target smoke reddit --targets-file ./mpgd.targets.json --kit-path ${MPGD_KIT_PATH:-__DEFAULT_KIT_PATH__}",
13
13
  "devvit:init": "pnpm --dir apps/target-devvit run init",
14
+ "devvit:init:copy-paste": "pnpm --dir apps/target-devvit run init:copy-paste",
14
15
  "devvit:login": "pnpm --dir apps/target-devvit exec devvit login",
15
16
  "devvit:login:copy-paste": "pnpm --dir apps/target-devvit exec devvit login --copy-paste",
16
17
  "devvit:whoami": "pnpm --dir apps/target-devvit run whoami",