Skip to content
Open
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
72 changes: 36 additions & 36 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ export interface IPackageOptions {
*
* Defaults to `NAME-VERSION.vsix`.
*/
readonly packagePath?: string;
readonly version?: string;
packagePath?: string;
version?: string;

/**
* Optional target the extension should run on.
*
* https://code.visualstudio.com/api/working-with-extensions/publishing-extension#platformspecific-extensions
*/
readonly target?: string;
target?: string;

/**
* Ignore all files inside folders named as other targets. Only relevant when
Expand All @@ -101,74 +101,74 @@ export interface IPackageOptions {
*
* @default false
*/
readonly ignoreOtherTargetFolders?: boolean;
ignoreOtherTargetFolders?: boolean;

/**
* Recurse into symlinked directories instead of treating them as files.
*/
readonly followSymlinks?: boolean;
followSymlinks?: boolean;

readonly commitMessage?: string;
readonly gitTagVersion?: boolean;
readonly updatePackageJson?: boolean;
commitMessage?: string;
gitTagVersion?: boolean;
updatePackageJson?: boolean;

/**
* The location of the extension in the file system.
*
* Defaults to `process.cwd()`.
*/
readonly cwd?: string;
cwd?: string;

readonly readmePath?: string;
readonly changelogPath?: string;
readmePath?: string;
changelogPath?: string;

/**
* GitHub branch used to publish the package. Used to automatically infer
* the base content and images URI.
*/
readonly githubBranch?: string;
githubBranch?: string;

/**
* GitLab branch used to publish the package. Used to automatically infer
* the base content and images URI.
*/
readonly gitlabBranch?: string;
gitlabBranch?: string;

readonly rewriteRelativeLinks?: boolean;
rewriteRelativeLinks?: boolean;
/**
* The base URL for links detected in Markdown files.
*/
readonly baseContentUrl?: string;
baseContentUrl?: string;

/**
* The base URL for images detected in Markdown files.
*/
readonly baseImagesUrl?: string;
baseImagesUrl?: string;

/**
* Should use Yarn instead of NPM.
*/
readonly useYarn?: boolean;
readonly dependencyEntryPoints?: string[];
readonly ignoreFile?: string;
readonly gitHubIssueLinking?: boolean;
readonly gitLabIssueLinking?: boolean;
readonly dependencies?: boolean;
useYarn?: boolean;
dependencyEntryPoints?: string[];
ignoreFile?: string;
gitHubIssueLinking?: boolean;
gitLabIssueLinking?: boolean;
dependencies?: boolean;

/**
* Mark this package as a pre-release
*/
readonly preRelease?: boolean;
readonly allowStarActivation?: boolean;
readonly allowMissingRepository?: boolean;
readonly allowUnusedFilesPattern?: boolean;
readonly allowPackageSecrets?: string[];
readonly allowPackageAllSecrets?: boolean;
readonly allowPackageEnvFile?: boolean;
preRelease?: boolean;
allowStarActivation?: boolean;
allowMissingRepository?: boolean;
allowUnusedFilesPattern?: boolean;
allowPackageSecrets?: string[];
allowPackageAllSecrets?: boolean;
allowPackageEnvFile?: boolean;

readonly skipLicense?: boolean;
skipLicense?: boolean;

readonly signTool?: string;
signTool?: string;
}

export interface IProcessor {
Expand Down Expand Up @@ -370,11 +370,11 @@ function isHostTrusted(url: url.URL): boolean {
}

export interface IVersionBumpOptions {
readonly cwd?: string;
readonly version?: string;
readonly commitMessage?: string;
readonly gitTagVersion?: boolean;
readonly updatePackageJson?: boolean;
cwd?: string;
version?: string;
commitMessage?: string;
gitTagVersion?: boolean;
updatePackageJson?: boolean;
}

export async function versionBump(options: IVersionBumpOptions): Promise<void> {
Expand Down
78 changes: 39 additions & 39 deletions src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,73 +22,73 @@ const tmpName = promisify(tmp.tmpName);
* @public
*/
export interface IPublishOptions {
readonly packagePath?: string[];
readonly version?: string;
readonly targets?: string[];
readonly ignoreOtherTargetFolders?: boolean;
readonly commitMessage?: string;
readonly gitTagVersion?: boolean;
readonly updatePackageJson?: boolean;
packagePath?: string[];
version?: string;
targets?: string[];
ignoreOtherTargetFolders?: boolean;
commitMessage?: string;
gitTagVersion?: boolean;
updatePackageJson?: boolean;

/**
* The location of the extension in the file system.
*
* Defaults to `process.cwd()`.
*/
readonly cwd?: string;
readonly readmePath?: string;
readonly changelogPath?: string;
readonly githubBranch?: string;
readonly gitlabBranch?: string;
cwd?: string;
readmePath?: string;
changelogPath?: string;
githubBranch?: string;
gitlabBranch?: string;

/**
* The base URL for links detected in Markdown files.
*/
readonly baseContentUrl?: string;
baseContentUrl?: string;

/**
* The base URL for images detected in Markdown files.
*/
readonly baseImagesUrl?: string;
baseImagesUrl?: string;

/**
* Should use Yarn instead of NPM.
*/
readonly useYarn?: boolean;
readonly dependencyEntryPoints?: string[];
readonly ignoreFile?: string;
useYarn?: boolean;
dependencyEntryPoints?: string[];
ignoreFile?: string;

/**
* Recurse into symlinked directories instead of treating them as files
*/
readonly followSymlinks?: boolean;
followSymlinks?: boolean;

/**
* The Personal Access Token to use.
*
* Defaults to the stored one.
*/
readonly pat?: string;
readonly azureCredential?: boolean;
readonly allowProposedApi?: boolean;
readonly noVerify?: boolean;
readonly allowProposedApis?: string[];
readonly allowAllProposedApis?: boolean;
readonly allowPackageSecrets?: string[];
readonly allowPackageAllSecrets?: boolean;
readonly allowPackageEnvFile?: boolean;
readonly dependencies?: boolean;
readonly preRelease?: boolean;
readonly allowStarActivation?: boolean;
readonly allowMissingRepository?: boolean;
readonly allowUnusedFilesPattern?: boolean;
readonly skipDuplicate?: boolean;
readonly skipLicense?: boolean;

readonly sigzipPath?: string[];
readonly manifestPath?: string[];
readonly signaturePath?: string[];
readonly signTool?: string;
pat?: string;
azureCredential?: boolean;
allowProposedApi?: boolean;
noVerify?: boolean;
allowProposedApis?: string[];
allowAllProposedApis?: boolean;
allowPackageSecrets?: string[];
allowPackageAllSecrets?: boolean;
allowPackageEnvFile?: boolean;
dependencies?: boolean;
preRelease?: boolean;
allowStarActivation?: boolean;
allowMissingRepository?: boolean;
allowUnusedFilesPattern?: boolean;
skipDuplicate?: boolean;
skipLicense?: boolean;

sigzipPath?: string[];
manifestPath?: string[];
signaturePath?: string[];
signTool?: string;
}

export async function publish(options: IPublishOptions = {}): Promise<any> {
Expand Down