@rushstack/heft-vscode-extension-plugin 0.2.4 → 0.2.6

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.
@@ -16,6 +16,10 @@ interface IVSCodeExtensionPackagePluginOptions {
16
16
  * This manifest is used for signing the VS Code extension.
17
17
  */
18
18
  manifestPath: string;
19
+ /**
20
+ * Additional flags to pass to the VSCE packaging command.
21
+ */
22
+ extraPackagingFlags?: string[];
19
23
  }
20
24
  export default class VSCodeExtensionPackagePlugin implements IHeftTaskPlugin<IVSCodeExtensionPackagePluginOptions> {
21
25
  apply(heftTaskSession: IHeftTaskSession, heftConfiguration: HeftConfiguration, pluginOptions: IVSCodeExtensionPackagePluginOptions): void;
@@ -1 +1 @@
1
- {"version":3,"file":"VSCodeExtensionPackagePlugin.d.ts","sourceRoot":"","sources":["../src/VSCodeExtensionPackagePlugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AAKzB,UAAU,oCAAoC;IAC5C;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,OAAO,4BACnB,YAAW,eAAe,CAAC,oCAAoC,CAAC;IAEzD,KAAK,CACV,eAAe,EAAE,gBAAgB,EACjC,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,oCAAoC,GAClD,IAAI;CAgDR"}
1
+ {"version":3,"file":"VSCodeExtensionPackagePlugin.d.ts","sourceRoot":"","sources":["../src/VSCodeExtensionPackagePlugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AAKzB,UAAU,oCAAoC;IAC5C;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAID,MAAM,CAAC,OAAO,OAAO,4BACnB,YAAW,eAAe,CAAC,oCAAoC,CAAC;IAEzD,KAAK,CACV,eAAe,EAAE,gBAAgB,EACjC,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,oCAAoC,GAClD,IAAI;CAuDR"}
@@ -41,12 +41,19 @@ const PLUGIN_NAME = 'vscode-extension-package-plugin';
41
41
  class VSCodeExtensionPackagePlugin {
42
42
  apply(heftTaskSession, heftConfiguration, pluginOptions) {
43
43
  heftTaskSession.hooks.run.tapPromise(PLUGIN_NAME, async (runOptions) => {
44
- const { unpackedFolderPath, vsixPath, manifestPath } = pluginOptions;
44
+ const { unpackedFolderPath, vsixPath, manifestPath, extraPackagingFlags = [] } = pluginOptions;
45
45
  const { buildFolderPath } = heftConfiguration;
46
46
  const { logger: { terminal } } = heftTaskSession;
47
47
  terminal.writeLine(`Using VSCE script: ${util_1.vsceScriptPath}`);
48
48
  terminal.writeLine(`Packaging VSIX from ${unpackedFolderPath} to ${vsixPath}`);
49
- const packageResult = await (0, util_1.executeAndWaitAsync)(terminal, 'node', [util_1.vsceScriptPath, 'package', '--no-dependencies', '--out', path.resolve(vsixPath)], {
49
+ const packageResult = await (0, util_1.executeAndWaitAsync)(terminal, 'node', [
50
+ util_1.vsceScriptPath,
51
+ 'package',
52
+ '--no-dependencies',
53
+ '--out',
54
+ path.resolve(vsixPath),
55
+ ...extraPackagingFlags
56
+ ], {
50
57
  currentWorkingDirectory: path.resolve(buildFolderPath, unpackedFolderPath)
51
58
  });
52
59
  if (packageResult.exitCode !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/heft-vscode-extension-plugin",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Heft plugin for building vscode extensions.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,18 +12,18 @@
12
12
  "main": "lib/index.js",
13
13
  "types": "lib/index.d.ts",
14
14
  "peerDependencies": {
15
- "@rushstack/heft": "^0.74.3"
15
+ "@rushstack/heft": "^0.74.4"
16
16
  },
17
17
  "devDependencies": {
18
18
  "eslint": "~9.25.1",
19
19
  "@types/node": "20.17.19",
20
- "@rushstack/heft-node-rig": "2.9.4",
21
- "@rushstack/heft": "0.74.3"
20
+ "@rushstack/heft": "0.74.4",
21
+ "@rushstack/heft-node-rig": "2.9.5"
22
22
  },
23
23
  "dependencies": {
24
24
  "@vscode/vsce": "3.2.1",
25
25
  "@rushstack/node-core-library": "5.14.0",
26
- "@rushstack/terminal": "0.15.4"
26
+ "@rushstack/terminal": "0.16.0"
27
27
  },
28
28
  "sideEffects": false,
29
29
  "scripts": {