@extension.dev/deploy 0.2.4 → 0.3.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/CHANGELOG.md +13 -0
- package/README.md +34 -1
- package/dist/module.js +500 -340
- package/dist/module.mjs +498 -338
- package/dist/src/chrome.d.ts +19 -0
- package/dist/src/chrome.d.ts.map +1 -1
- package/dist/src/cli-commands.d.ts +5 -0
- package/dist/src/cli-commands.d.ts.map +1 -0
- package/dist/src/cli-parse.d.ts +3 -0
- package/dist/src/cli-parse.d.ts.map +1 -0
- package/dist/src/cli-usage.d.ts +2 -0
- package/dist/src/cli-usage.d.ts.map +1 -0
- package/dist/src/cli.d.ts +1 -2
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/config.d.ts +6 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/deploy.d.ts.map +1 -1
- package/dist/src/edge.d.ts.map +1 -1
- package/dist/src/firefox-api.d.ts +52 -0
- package/dist/src/firefox-api.d.ts.map +1 -0
- package/dist/src/firefox.d.ts +1 -24
- package/dist/src/firefox.d.ts.map +1 -1
- package/dist/src/init-chrome.d.ts +16 -0
- package/dist/src/init-chrome.d.ts.map +1 -0
- package/dist/src/init-edge.d.ts +8 -0
- package/dist/src/init-edge.d.ts.map +1 -0
- package/dist/src/init-firefox.d.ts +8 -0
- package/dist/src/init-firefox.d.ts.map +1 -0
- package/dist/src/init-io.d.ts.map +1 -1
- package/dist/src/init-prompt.d.ts +5 -0
- package/dist/src/init-prompt.d.ts.map +1 -0
- package/dist/src/init.d.ts +3 -26
- package/dist/src/init.d.ts.map +1 -1
- package/dist/src/types.d.ts +49 -5
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/fetch.d.ts +2 -2
- package/dist/src/utils/fetch.d.ts.map +1 -1
- package/dist/src/watch.d.ts.map +1 -1
- package/package.json +18 -8
- package/dist/__tests__/cli.test.d.ts +0 -2
- package/dist/__tests__/cli.test.d.ts.map +0 -1
- package/dist/__tests__/config.test.d.ts +0 -2
- package/dist/__tests__/config.test.d.ts.map +0 -1
- package/dist/__tests__/deploy.test.d.ts +0 -2
- package/dist/__tests__/deploy.test.d.ts.map +0 -1
- package/dist/__tests__/dry-run.test.d.ts +0 -2
- package/dist/__tests__/dry-run.test.d.ts.map +0 -1
- package/dist/__tests__/init.test.d.ts +0 -2
- package/dist/__tests__/init.test.d.ts.map +0 -1
- package/dist/__tests__/types.test.d.ts +0 -2
- package/dist/__tests__/types.test.d.ts.map +0 -1
- package/dist/__tests__/utils.test.d.ts +0 -2
- package/dist/__tests__/utils.test.d.ts.map +0 -1
- package/dist/__tests__/verify.test.d.ts +0 -2
- package/dist/__tests__/verify.test.d.ts.map +0 -1
- package/dist/__tests__/watch.test.d.ts +0 -2
- package/dist/__tests__/watch.test.d.ts.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.5
|
|
4
|
+
|
|
5
|
+
Current release. Earlier history is tracked in the source monorepo; entries
|
|
6
|
+
below summarize the package as shipped.
|
|
7
|
+
|
|
8
|
+
- `extension-deploy` CLI and `deploy()` library API for Chrome Web Store,
|
|
9
|
+
Firefox AMO, and Edge Partner Center submissions.
|
|
10
|
+
- Draft and unlisted submission modes for non-destructive store testing.
|
|
11
|
+
- Dry-run mode, config file + environment variable credential resolution,
|
|
12
|
+
zod validation schemas exported for consumers.
|
|
13
|
+
- Watch mode for resubmission flows.
|
package/README.md
CHANGED
|
@@ -97,6 +97,11 @@ Run `extension-deploy --help` for the full list of flags.
|
|
|
97
97
|
| `--firefox-jwt-secret <secret>` | `FIREFOX_JWT_SECRET` | AMO JWT secret |
|
|
98
98
|
| `--firefox-channel <channel>` | `FIREFOX_CHANNEL` | `"listed"` or `"unlisted"` |
|
|
99
99
|
|
|
100
|
+
`--firefox-extension-id` is optional for an **unlisted first submission**: with no
|
|
101
|
+
GUID and `--firefox-channel unlisted`, a new add-on is created and AMO assigns the
|
|
102
|
+
GUID. Provide the GUID to push a new version to an existing add-on. Listed
|
|
103
|
+
submissions always require an existing GUID.
|
|
104
|
+
|
|
100
105
|
### Edge Partner Center
|
|
101
106
|
|
|
102
107
|
| Flag | Env var | Description |
|
|
@@ -122,6 +127,22 @@ CHROME_CLIENT_SECRET=GOCSPX-xxx
|
|
|
122
127
|
CHROME_REFRESH_TOKEN=1//0xxx
|
|
123
128
|
```
|
|
124
129
|
|
|
130
|
+
## Drafts and deletion
|
|
131
|
+
|
|
132
|
+
This package only uploads and publishes. It intentionally has **no delete or
|
|
133
|
+
discard command**: it is meant to run in CI, where the credentials it carries
|
|
134
|
+
should not be able to destroy a listing.
|
|
135
|
+
|
|
136
|
+
If you upload a draft (Chrome `--chrome-skip-submit-review`, Edge
|
|
137
|
+
`--edge-skip-submit-review`) you do not need to clean it up:
|
|
138
|
+
|
|
139
|
+
- Chrome and Edge drafts are **private** (never shipped to users) and are
|
|
140
|
+
**overwritten by your next upload**. Neither store exposes a draft-discard or
|
|
141
|
+
item-delete API; deleting an item is a dashboard-only action.
|
|
142
|
+
- Firefox add-ons can be deleted through the AMO Developer Hub. A throwaway
|
|
143
|
+
unlisted add-on created for testing is best **reused** (push new versions to
|
|
144
|
+
the same GUID) rather than recreated each run.
|
|
145
|
+
|
|
125
146
|
## Library usage
|
|
126
147
|
|
|
127
148
|
```ts
|
|
@@ -165,7 +186,7 @@ if (!result.success) {
|
|
|
165
186
|
|
|
166
187
|
### `deploy(config): Promise<DeployResult>`
|
|
167
188
|
|
|
168
|
-
Deploys to all configured stores in parallel. Only stores with a config object are included
|
|
189
|
+
Deploys to all configured stores in parallel. Only stores with a config object are included; omit a store to skip it.
|
|
169
190
|
|
|
170
191
|
**`DeployConfig`**
|
|
171
192
|
|
|
@@ -262,6 +283,18 @@ What the workflow does:
|
|
|
262
283
|
5. Pushes the commit and tag
|
|
263
284
|
6. Publishes the package to npm
|
|
264
285
|
|
|
286
|
+
## The extension.dev open source stack
|
|
287
|
+
|
|
288
|
+
| Package | Use it to |
|
|
289
|
+
| --- | --- |
|
|
290
|
+
| [`@extension.dev/mcp`](https://github.com/extensiondev/mcp) | Give AI agents tools to build, run, and debug extensions |
|
|
291
|
+
| [`@extension.dev/skill`](https://github.com/extensiondev/skill) | Teach agents the cross-browser rules and silent-failure gotchas |
|
|
292
|
+
| [`@extension.dev/artifact-integrity`](https://github.com/extensiondev/artifact-integrity) | Gate releases on artifact verification |
|
|
293
|
+
| [`@extension.dev/compiler`](https://github.com/extensiondev/compiler) | Build extensions in the browser with esbuild-wasm |
|
|
294
|
+
| [`@extension.dev/core`](https://github.com/extensiondev/core) | Authenticate and publish to the extension.dev platform |
|
|
295
|
+
|
|
296
|
+
All of it rides on [Extension.js](https://github.com/extension-js/extension.js), the open-source cross-browser extension framework.
|
|
297
|
+
|
|
265
298
|
## License
|
|
266
299
|
|
|
267
300
|
MIT
|