extension 2.0.0-rc.2 → 2.0.0-rc.21

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.
Files changed (2) hide show
  1. package/dist/cli.js +12 -2
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -117,7 +117,7 @@ var package_default = {
117
117
  node: ">=18"
118
118
  },
119
119
  name: "extension",
120
- version: "2.0.0-rc.2",
120
+ version: "2.0.0-rc.21",
121
121
  description: "Create cross-browser extensions with no build configuration.",
122
122
  main: "./dist/cli.js",
123
123
  types: "./dist/cli.d.ts",
@@ -200,7 +200,8 @@ extensionJs.command("create").arguments("<project-name|project-path>").usage("cr
200
200
  ).action(async function(pathOrRemoteUrl, { template, install }) {
201
201
  await (0, import_extension_create.extensionCreate)(pathOrRemoteUrl, {
202
202
  template,
203
- install
203
+ install,
204
+ cliVersion: package_default.version
204
205
  });
205
206
  });
206
207
  extensionJs.command("dev").arguments("[project-path|remote-url]").usage("dev [project-path|remote-url] [options]").description("Starts the development server (development mode)").option(
@@ -224,6 +225,9 @@ extensionJs.command("dev").arguments("[project-path|remote-url]").usage("dev [pr
224
225
  ).option(
225
226
  "--starting-url <url>",
226
227
  "specify the starting URL for the browser. Defaults to `undefined`"
228
+ ).option(
229
+ "--port <port>",
230
+ "specify the port to use for the development server. Defaults to `8080`"
227
231
  ).action(async function(pathOrRemoteUrl, { browser = "chrome", ...devOptions }) {
228
232
  for (const vendor of vendors(browser)) {
229
233
  await (0, import_extension_develop.extensionDev)(pathOrRemoteUrl, {
@@ -257,6 +261,9 @@ extensionJs.command("start").arguments("[project-path|remote-url]").usage("start
257
261
  ).option(
258
262
  "--starting-url <url>",
259
263
  "specify the starting URL for the browser. Defaults to `undefined`"
264
+ ).option(
265
+ "--port <port>",
266
+ "specify the port to use for the development server. Defaults to `8080`"
260
267
  ).action(async function(pathOrRemoteUrl, { browser = "chrome", ...startOptions }) {
261
268
  for (const vendor of vendors(browser)) {
262
269
  await (0, import_extension_develop.extensionStart)(pathOrRemoteUrl, {
@@ -284,6 +291,9 @@ extensionJs.command("preview").arguments("[project-name]").usage("preview [path-
284
291
  ).option(
285
292
  "--starting-url <url>",
286
293
  "specify the starting URL for the browser. Defaults to `undefined`"
294
+ ).option(
295
+ "--port <port>",
296
+ "specify the port to use for the development server. Defaults to `8080`"
287
297
  ).action(async function(pathOrRemoteUrl, { browser = "chrome", ...previewOptions }) {
288
298
  for (const vendor of vendors(browser)) {
289
299
  await (0, import_extension_develop.extensionPreview)(pathOrRemoteUrl, {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=18"
10
10
  },
11
11
  "name": "extension",
12
- "version": "2.0.0-rc.2",
12
+ "version": "2.0.0-rc.21",
13
13
  "description": "Create cross-browser extensions with no build configuration.",
14
14
  "main": "./dist/cli.js",
15
15
  "types": "./dist/cli.d.ts",
@@ -50,8 +50,8 @@
50
50
  "semver": "^7.6.3",
51
51
  "update-check": "^1.5.4",
52
52
  "webextension-polyfill": "^0.12.0",
53
- "extension-create": "2.0.0-rc.2",
54
- "extension-develop": "2.0.0-rc.2"
53
+ "extension-create": "2.0.0",
54
+ "extension-develop": "2.0.0-rc.21"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/jest": "^29.5.14",