Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions extensions/helix/package.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
// ============================================================================

import { Builder, generateIgnoredKeybinds } from "../../meta";
import { version, preReleaseVersion } from "../../package.build";
import * as fs from "fs/promises";
import { extensionId } from "../../src/utils/constants";

const version = "0.1.0",
preRelease = 1,
preReleaseVersion = `${version}-pre${preRelease}`;

export const pkg = (modules: Builder.ParsedModule[]) => ({

// Common package.json properties.
Expand Down Expand Up @@ -50,8 +47,8 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({
scripts: {
"package": "vsce package --allow-star-activation --follow-symlinks",
"publish": "vsce publish --allow-star-activation --follow-symlinks",
"package:pre": `vsce package --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json --follow-symlinks ${preReleaseVersion}`,
"publish:pre": `vsce publish --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json --follow-symlinks ${preReleaseVersion}`,
"package:pre": `vsce package --allow-star-activation --follow-symlinks --pre-release --no-git-tag-version --no-update-package-json ${preReleaseVersion}`,
"publish:pre": `vsce publish --allow-star-activation --follow-symlinks --pre-release --no-git-tag-version --no-update-package-json ${preReleaseVersion}`,
},

contributes: {
Expand Down
6 changes: 3 additions & 3 deletions extensions/helix/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions package.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ const selectionDecorationType = {
// Package information
// ============================================================================

const version = "0.5.15",
preRelease = 1;
export const version = "0.5.15",
preRelease = 1,
preReleaseVersion = `${version}-pre${preRelease}`;

export const pkg = (modules: Builder.ParsedModule[]) => ({

Expand Down Expand Up @@ -127,11 +128,13 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({
"vscode:prepublish": "yarn run generate && yarn run compile && yarn run compile-web",
"package": "vsce package --allow-star-activation",
"publish": "vsce publish --allow-star-activation",
"package:pre": `vsce package --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json ${version.replace(/\d+$/, "$&" + preRelease.toString().padStart(3, "0"))}`,
"publish:pre": `vsce publish --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json ${version.replace(/\d+$/, "$&" + preRelease.toString().padStart(3, "0"))}`,
"package:pre": `vsce package --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json ${preReleaseVersion}`,
"publish:pre": `vsce publish --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json ${preReleaseVersion}`,

"package-helix:pre": `cd extensions/helix && yarn run package:pre`,
"publish-helix:pre": `cd extensions/helix && yarn run publish:pre`,
"package-helix": "cd extensions/helix && vsce package --allow-star-activation --follow-symlinks",
"publish-helix": "cd extensions/helix && vsce publish --allow-star-activation --follow-symlinks",
"package-helix:pre": `cd extensions/helix && vsce package --allow-star-activation --follow-symlinks --pre-release --no-git-tag-version --no-update-package-json ${preReleaseVersion}`,
"publish-helix:pre": `cd extensions/helix && vsce publish --allow-star-activation --follow-symlinks --pre-release --no-git-tag-version --no-update-package-json ${preReleaseVersion}`,
},

devDependencies: {
Expand Down
10 changes: 6 additions & 4 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.