extension 2.0.0-alpha.8 → 2.0.0-alpha.9

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 +15 -6
  2. package/package.json +7 -4
package/dist/cli.js CHANGED
@@ -114,7 +114,7 @@ var package_default = {
114
114
  node: ">=18"
115
115
  },
116
116
  name: "extension",
117
- version: "2.0.0-alpha.8",
117
+ version: "2.0.0-alpha.9",
118
118
  description: "Create cross-browser extensions with no build configuration.",
119
119
  main: "./dist/cli.js",
120
120
  types: "./dist/cli.d.ts",
@@ -156,12 +156,15 @@ var package_default = {
156
156
  "typescript"
157
157
  ],
158
158
  dependencies: {
159
+ "@types/node": "^20.11.5",
160
+ "@types/chrome": "^0.0.268",
159
161
  "@colors/colors": "^1.6.0",
160
- "extension-create": "2.0.0-alpha.8",
161
- "extension-develop": "2.0.0-alpha.8",
162
+ "extension-create": "2.0.0-alpha.9",
163
+ "extension-develop": "2.0.0-alpha.9",
162
164
  commander: "^11.1.0",
163
165
  semver: "^7.5.4",
164
- "update-check": "^1.5.4"
166
+ "update-check": "^1.5.4",
167
+ "webextension-polyfill": "^0.12.0"
165
168
  },
166
169
  devDependencies: {
167
170
  "@types/jest": "^29.5.11",
@@ -185,8 +188,14 @@ var vendors = (browser) => browser === "all" ? "chrome,edge,firefox".split(",")
185
188
  extensionJs.command("create").arguments("<project-name|project-path>").usage("create <project-name|project-path> [options]").description("Creates a new extension.").option(
186
189
  "-t, --template <template-name>",
187
190
  "specify a template for the created project"
188
- ).action(async function(pathOrRemoteUrl, { template }) {
189
- await (0, import_extension_create.extensionCreate)(pathOrRemoteUrl, { template });
191
+ ).option(
192
+ "--install",
193
+ "whether or not to install the dependencies after creating the project"
194
+ ).action(async function(pathOrRemoteUrl, { template, install }) {
195
+ await (0, import_extension_create.extensionCreate)(pathOrRemoteUrl, {
196
+ template,
197
+ install
198
+ });
190
199
  });
191
200
  extensionJs.command("dev").arguments("[project-path|remote-url]").usage("dev [project-path|remote-url] [options]").description("Starts the development server (development mode)").option(
192
201
  "-u, --user-data-dir <path-to-file | boolean>",
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=18"
10
10
  },
11
11
  "name": "extension",
12
- "version": "2.0.0-alpha.8",
12
+ "version": "2.0.0-alpha.9",
13
13
  "description": "Create cross-browser extensions with no build configuration.",
14
14
  "main": "./dist/cli.js",
15
15
  "types": "./dist/cli.d.ts",
@@ -51,12 +51,15 @@
51
51
  "typescript"
52
52
  ],
53
53
  "dependencies": {
54
+ "@types/node": "^20.11.5",
55
+ "@types/chrome": "^0.0.268",
54
56
  "@colors/colors": "^1.6.0",
55
- "extension-create": "2.0.0-alpha.8",
56
- "extension-develop": "2.0.0-alpha.8",
57
+ "extension-create": "2.0.0-alpha.9",
58
+ "extension-develop": "2.0.0-alpha.9",
57
59
  "commander": "^11.1.0",
58
60
  "semver": "^7.5.4",
59
- "update-check": "^1.5.4"
61
+ "update-check": "^1.5.4",
62
+ "webextension-polyfill": "^0.12.0"
60
63
  },
61
64
  "devDependencies": {
62
65
  "@types/jest": "^29.5.11",