Skip to content

Fix release compilation #736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
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
32 changes: 32 additions & 0 deletions .yarn/versions/c7654edc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
releases:
"@yarnpkg/builder": prerelease
"@yarnpkg/check": prerelease
"@yarnpkg/cli": prerelease
"@yarnpkg/core": prerelease
"@yarnpkg/plugin-compat": prerelease
"@yarnpkg/plugin-constraints": prerelease
"@yarnpkg/plugin-dlx": prerelease
"@yarnpkg/plugin-essentials": prerelease
"@yarnpkg/plugin-exec": prerelease
"@yarnpkg/plugin-file": prerelease
"@yarnpkg/plugin-git": prerelease
"@yarnpkg/plugin-github": prerelease
"@yarnpkg/plugin-http": prerelease
"@yarnpkg/plugin-init": prerelease
"@yarnpkg/plugin-interactive-tools": prerelease
"@yarnpkg/plugin-link": prerelease
"@yarnpkg/plugin-node-modules": prerelease
"@yarnpkg/plugin-npm": prerelease
"@yarnpkg/plugin-npm-cli": prerelease
"@yarnpkg/plugin-pack": prerelease
"@yarnpkg/plugin-patch": prerelease
"@yarnpkg/plugin-pnp": prerelease
"@yarnpkg/plugin-stage": prerelease
"@yarnpkg/plugin-typescript": prerelease
"@yarnpkg/plugin-version": prerelease
"@yarnpkg/plugin-workspace-tools": prerelease
"@yarnpkg/pnp": prerelease
"@yarnpkg/pnpify": prerelease

declined:
- vscode-zipfs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"scripts": {
"build:plugin-commands": "node ./scripts/gen-plugin-commands.js > packages/plugin-essentials/sources/pluginCommands.ts",
"build:compile": "rm -rf \"$0\"/lib && mkdir -p \"$0\"/lib && rsync -a --exclude '*.ts' --exclude '*.tsx' --include '*.d.ts' \"$0\"/sources/ \"$0\"/lib/ && node scripts/compile \"$0\"",
"build:compile": "rm -rf \"$0\"/lib && mkdir -p \"$0\"/lib && rsync -a --exclude '*.ts' --exclude '*.tsx' --include '*.d.ts' \"$0\"/sources/ \"$0\"/lib/ && node scripts/compile \"$@\"",
"build:compile-inline": "find \"$0\"/sources -name '*.js' && babel \"$0\"/sources --out-dir \"$0\"/sources --extensions .ts,.tsx",
"gen-tssdk": "pnpify --sdk scripts",
"release:all": "./scripts/release.sh",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-constraints/sources/commands/constraints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {BaseCommand} from '@y
import {Configuration, IdentHash, Ident, Project, Workspace, miscUtils} from '@yarnpkg/core';
import {MessageName, StreamReport, AllDependencies, Report} from '@yarnpkg/core';
import {structUtils} from '@yarnpkg/core';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';
import getPath from 'lodash/get';
import setPath from 'lodash/set';
import unsetPath from 'lodash/unset';
Expand All @@ -14,7 +14,7 @@ export default class ConstraintsCheckCommand extends BaseCommand {
@Command.Boolean(`--fix`)
fix: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
category: `Constraints-related commands`,
description: `check that the project constraints are met`,
details: `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, Project} from '@yarnpkg/core';
import {StreamReport} from '@yarnpkg/core';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

import {Constraints} from '../../Constraints';

Expand All @@ -13,7 +13,7 @@ export default class ConstraintsQueryCommand extends BaseCommand {
@Command.String()
query!: string;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
category: `Constraints-related commands`,
description: `query the constraints fact database`,
details: `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, Project} from '@yarnpkg/core';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

import {Constraints} from '../../Constraints';

Expand All @@ -9,7 +9,7 @@ export default class ConstraintsSourceCommand extends BaseCommand {
@Command.Boolean(`-v,--verbose`)
verbose: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
category: `Constraints-related commands`,
description: `print the source code for the constraints`,
details: `
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-dlx/sources/commands/dlx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cl
import {Configuration, Project, ThrowReport} from '@yarnpkg/core';
import {scriptUtils, structUtils} from '@yarnpkg/core';
import {Filename, PortablePath, npath, ppath, toFilename, xfs} from '@yarnpkg/fslib';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';
import tmp from 'tmp';

// eslint-disable-next-line arca/no-default-export
Expand All @@ -19,7 +19,7 @@ export default class DlxCommand extends BaseCommand {
@Command.Proxy()
args: Array<string> = [];

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `run a package in a temporary environment`,
details: `
This command will install a package within a temporary environment, and run its binary script if it contains any. The binary will run within the current cwd.
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Cache, Configuration, Descriptor, LightReport, MessageName} from '@yarnp
import {Project, StreamReport, Workspace, Ident} from '@yarnpkg/core';
import {structUtils} from '@yarnpkg/core';
import {PortablePath} from '@yarnpkg/fslib';
import {Command, UsageError} from 'clipanion';
import {Command, Usage, UsageError} from 'clipanion';
import inquirer from 'inquirer';

import * as suggestUtils from '../suggestUtils';
Expand Down Expand Up @@ -41,7 +41,7 @@ export default class AddCommand extends BaseCommand {
@Command.Boolean(`--cached`)
cached: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `add dependencies to the project`,
details: `
This command adds a package to the package.json for the nearest workspace.
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/bin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, Project, ThrowReport, StreamReport} from '@yarnpkg/core';
import {scriptUtils, structUtils} from '@yarnpkg/core';
import {Command, UsageError} from 'clipanion';
import {Command, Usage, UsageError} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class BinCommand extends BaseCommand {
Expand All @@ -14,7 +14,7 @@ export default class BinCommand extends BaseCommand {
@Command.Boolean(`--json`)
json: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `get the path to a binary script`,
details: `
When used without arguments, this command will print the list of all the binaries available in the current workspace. Adding the \`-v,--verbose\` flag will cause the output to contain both the binary name and the locator of the package that provides the binary.
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/cache/clean.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, Cache, StreamReport} from '@yarnpkg/core';
import {xfs} from '@yarnpkg/fslib';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class CacheCleanCommand extends BaseCommand {
Expand All @@ -11,7 +11,7 @@ export default class CacheCleanCommand extends BaseCommand {
@Command.Boolean(`--all`)
all: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `remove the shared cache files`,
details: `
This command will remove all the files in the shared cache.
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, MessageName, SettingsType, StreamReport} from '@yarnpkg/core';
import {miscUtils} from '@yarnpkg/core';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';
import {inspect} from 'util';

// eslint-disable-next-line arca/no-default-export
Expand All @@ -15,7 +15,7 @@ export default class ConfigCommand extends BaseCommand {
@Command.Boolean(`--json`)
json: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `display the current configuration`,
details: `
This command prints the current active configuration settings.
Expand Down
8 changes: 4 additions & 4 deletions packages/plugin-essentials/sources/commands/config/get.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration} from '@yarnpkg/core';
import {Command, UsageError} from 'clipanion';
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration} from '@yarnpkg/core';
import {Command, Usage, UsageError} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class ConfigSetCommand extends BaseCommand {
@Command.String()
name!: string;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `read a configuration settings`,
});

Expand Down
8 changes: 4 additions & 4 deletions packages/plugin-essentials/sources/commands/config/set.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration} from '@yarnpkg/core';
import {Command, UsageError} from 'clipanion';
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration} from '@yarnpkg/core';
import {Command, Usage, UsageError} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class ConfigSetCommand extends BaseCommand {
Expand All @@ -10,7 +10,7 @@ export default class ConfigSetCommand extends BaseCommand {
@Command.String()
value!: string;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `change a configuration settings`,
});

Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {BaseCommand, WorkspaceRequiredError} f
import {Configuration, Cache, MessageName, Project, ReportError, StreamReport} from '@yarnpkg/core';
import {xfs, ppath} from '@yarnpkg/fslib';
import {parseSyml, stringifySyml} from '@yarnpkg/parsers';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class YarnCommand extends BaseCommand {
Expand Down Expand Up @@ -39,7 +39,7 @@ export default class YarnCommand extends BaseCommand {
@Command.Boolean(`--silent`, {hidden: true})
silent?: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `install the project dependencies`,
details: `
This command setup your project if needed. The installation is splitted in four different steps that each have their own characteristics:
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/link.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli';
import {Cache, Configuration, Project, StreamReport, structUtils} from '@yarnpkg/core';
import {npath, ppath} from '@yarnpkg/fslib';
import {Command, UsageError} from 'clipanion';
import {Command, Usage, UsageError} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class LinkCommand extends BaseCommand {
Expand All @@ -17,7 +17,7 @@ export default class LinkCommand extends BaseCommand {
@Command.Boolean(`-r,--relative`)
relative: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `connect the local project to another one`,
details: `
This command will set a new \`resolutions\` field in the project-level manifest and point it to the workspace at the specified location (even if part of another project).
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/node.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, Project} from '@yarnpkg/core';
import {execUtils, scriptUtils} from '@yarnpkg/core';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class NodeCommand extends BaseCommand {
@Command.Proxy()
args: Array<string> = [];

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `run node with the hook already setup`,
details: `
This command simply runs Node. It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment).
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/plugin/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {BaseCommand}
import {Configuration, MessageName, Project, ReportError, StreamReport, miscUtils} from '@yarnpkg/core';
import {httpUtils, structUtils} from '@yarnpkg/core';
import {PortablePath, npath, ppath, xfs} from '@yarnpkg/fslib';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';
import {runInNewContext} from 'vm';

import {getAvailablePlugins} from './list';
Expand All @@ -12,7 +12,7 @@ export default class PluginDlCommand extends BaseCommand {
@Command.String()
name!: string;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
category: `Plugin-related commands`,
description: `download a plugin`,
details: `
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/plugin/list.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, StreamReport, httpUtils} from '@yarnpkg/core';
import {parseSyml} from '@yarnpkg/parsers';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

const REMOTE_REGISTRY = `https://github.com/raw/yarnpkg/berry/master/plugins.yml`;

Expand All @@ -17,7 +17,7 @@ export default class PluginDlCommand extends BaseCommand {
@Command.Boolean(`--json`)
json: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
category: `Plugin-related commands`,
description: `list the available official plugins`,
details: `
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/plugin/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, StreamReport} from '@yarnpkg/core';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class PluginListCommand extends BaseCommand {
static usage = Command.Usage({
static usage: Usage = Command.Usage({
category: `Plugin-related commands`,
description: `list the active plugins`,
details: `
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import {BaseCommand, WorkspaceRequiredError}
import {Cache, Configuration, Project, StreamReport, ThrowReport, structUtils, IdentHash, LocatorHash} from '@yarnpkg/core';
import {PortablePath, xfs, ppath} from '@yarnpkg/fslib';
import {parseSyml} from '@yarnpkg/parsers';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class RunCommand extends BaseCommand {
@Command.Rest()
idents: Array<string> = [];

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `rebuild the project's native packages`,
details: `
This command will automatically cause Yarn to forget about previous compilations of the given packages and to run them again.
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli';
import {Configuration, Cache, Descriptor, Project} from '@yarnpkg/core';
import {StreamReport, Workspace} from '@yarnpkg/core';
import {structUtils} from '@yarnpkg/core';
import {Command, UsageError} from 'clipanion';
import {Command, Usage, UsageError} from 'clipanion';

import * as suggestUtils from '../suggestUtils';
import {Hooks} from '..';
Expand All @@ -15,7 +15,7 @@ export default class RemoveCommand extends BaseCommand {
@Command.Rest()
names: Array<string> = [];

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `remove dependencies from the project`,
details: `
This command will remove the specified packages from the current workspace.
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/run.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, Project, Workspace, ThrowReport} from '@yarnpkg/core';
import {scriptUtils, structUtils} from '@yarnpkg/core';
import {Command, UsageError} from 'clipanion';
import {Command, Usage, UsageError} from 'clipanion';

import {pluginCommands} from '../pluginCommands';

Expand Down Expand Up @@ -31,7 +31,7 @@ export default class RunCommand extends BaseCommand {
@Command.Proxy()
args: Array<string> = [];

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `run a script defined in the package.json`,
details: `
This command will run a tool. The exact tool that will be executed will depend on the current state of your workspace:
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-essentials/sources/commands/set/resolution.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli';
import {Configuration, Cache, Project, StreamReport} from '@yarnpkg/core';
import {structUtils} from '@yarnpkg/core';
import {Command} from 'clipanion';
import {Command, Usage} from 'clipanion';

// eslint-disable-next-line arca/no-default-export
export default class SetResolutionCommand extends BaseCommand {
Expand All @@ -14,7 +14,7 @@ export default class SetResolutionCommand extends BaseCommand {
@Command.Boolean(`-s,--save`)
save: boolean = false;

static usage = Command.Usage({
static usage: Usage = Command.Usage({
description: `enforce a package resolution`,
details: `
This command updates the resolution table so that \`descriptor\` is resolved by \`resolution\`.
Expand Down
Loading