Variables
Const FAKE_FIRST_SCOPE
FAKE_FIRST_SCOPE: "first" = `first`
Const FAKE_HOME
FAKE_HOME: "HOME" = `HOME`
Const FAKE_LOCAL_APP_DATA
FAKE_LOCAL_APP_DATA: "LOCAL_APP_DATA" = `LOCAL_APP_DATA`
Const FAKE_PUBLISH_REGISTRY_URL
FAKE_PUBLISH_REGISTRY_URL: "https://npm.pkg.github.com" = `https://npm.pkg.github.com`
Const FAKE_REGISTRY_URL
FAKE_REGISTRY_URL: "http://yarn.test.registry" = `http://yarn.test.registry`
Const FAKE_REGISTRY_URL
FAKE_REGISTRY_URL: "http://yarn.test.registry" = `http://yarn.test.registry`
Const FAKE_REGISTRY_URL
FAKE_REGISTRY_URL: "http://yarn.test.registry" = `http://yarn.test.registry`
Const FAKE_SECOND_SCOPE
FAKE_SECOND_SCOPE: "second" = `second`
Const FAKE_THIRD_REGISTRY_URL
FAKE_THIRD_REGISTRY_URL: "https://third.yarn.test.registry" = `https://third.yarn.test.registry`
Const FAKE_THIRD_SCOPE
FAKE_THIRD_SCOPE: "third" = `third`
Const FAKE_WORKSPACE_ROOT
FAKE_WORKSPACE_ROOT: "WORKSPACE_ROOT" = `WORKSPACE_ROOT`
Const FILTER
FILTER: RegExp = new RegExp([`initScope`,`lastUpdateCheck`,`defaultLanguageName`,].join(`|`))
Filename
Filename: object
Type declaration
-
home: string & object
-
lockfile: string & object
-
manifest: string & object
-
nodeModules: string & object
-
pnpCjs: string & object
-
pnpData: string & object
-
pnpEsmLoader: string & object
-
pnpJs: string & object
-
rc: string & object
-
virtual: string & object
Filename
Filename: object
Type declaration
-
home: string & object
-
lockfile: string & object
-
manifest: string & object
-
nodeModules: string & object
-
pnpCjs: string & object
-
pnpData: string & object
-
pnpEsmLoader: string & object
-
pnpJs: string & object
-
rc: string & object
-
virtual: string & object
FsLinkType
FsLinkType: any
FsLinkType
FsLinkType: any
Const INVALID_AUTH_IDENT
INVALID_AUTH_IDENT: "dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==" = `dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==`
Const INVALID_AUTH_IDENT
INVALID_AUTH_IDENT: "dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==" = `dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==`
Const INVALID_AUTH_TOKEN
INVALID_AUTH_TOKEN: "a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57" = `a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57`
Const INVALID_AUTH_TOKEN
INVALID_AUTH_TOKEN: "a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57" = `a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57`
Const IS_WIN32
IS_WIN32: boolean = process.platform === `win32`
Const LOCKFILE_1_0_0
LOCKFILE_1_0_0: "# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "1.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-1.0.0.tgz#8d556c1e3e6c953ea16689c506073d5fa26b957f"integrity sha1-jVVsHj5slT6hZonFBgc9X6JrlX8=" = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "1.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-1.0.0.tgz#8d556c1e3e6c953ea16689c506073d5fa26b957f"integrity sha1-jVVsHj5slT6hZonFBgc9X6JrlX8=`
Const LOCKFILE_2_0_0
LOCKFILE_2_0_0: "# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "2.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-2.0.0.tgz#f3b8f24d76b21b04748e6888672752b872236fa7"integrity sha1-87jyTXayGwR0jmiIZydSuHIjb6c=" = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "2.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-2.0.0.tgz#f3b8f24d76b21b04748e6888672752b872236fa7"integrity sha1-87jyTXayGwR0jmiIZydSuHIjb6c=`
Const NO_DEPS_PATCH
NO_DEPS_PATCH: "diff --git a/index.js b/index.jsindex bb9c6f687..5b141d3df 100644--- a/index.js+++ b/index.js@@ -1,5 +1,7 @@module.exports = require(`./package.json`);+module.exports.hello = `world`;+for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {for (const dep of Object.keys(module.exports[key] || {})) {module.exports[key][dep] = require(dep);" = `diff --git a/index.js b/index.jsindex bb9c6f687..5b141d3df 100644--- a/index.js+++ b/index.js@@ -1,5 +1,7 @@module.exports = require(\`./package.json\`);+module.exports.hello = \`world\`;+for (const key of [\`dependencies\`, \`devDependencies\`, \`peerDependencies\`]) {for (const dep of Object.keys(module.exports[key] || {})) {module.exports[key][dep] = require(dep);`
Const PATCH_NAME
PATCH_NAME: string & object = `my-patch.patch` as Filename
Const RC_FILENAME
RC_FILENAME: ".spec-yarnrc" = `.spec-yarnrc`
Const SPEC_RC_FILENAME
SPEC_RC_FILENAME: string & object = `.spec-yarnrc` as Filename
Const SPEC_RC_FILENAME
SPEC_RC_FILENAME: string & object = `.spec-yarnrc` as Filename
Const SUBFOLDER
SUBFOLDER: "subfolder" = `subfolder`
Const TEST_TIMEOUT
TEST_TIMEOUT: 150000 | 50000 = os.endianness() === `BE`? 150000: 50000
Const configs
configs: object[] = [{nodeLinker: `pnp`,}, {nodeLinker: `pnpm`,}, {nodeLinker: `node-modules`,}]
Const configs
configs: object[] = [{nodeLinker: `pnp`,}, {nodeLinker: `pnpm`,}, {nodeLinker: `node-modules`,}]
Const constraintsFile
constraintsFile: "custom_predicate(DependencyType):-dependency_type(DependencyType),DependencyType \= dependencies." = `custom_predicate(DependencyType):-dependency_type(DependencyType),DependencyType \\= dependencies.`
Const cp
cp: "child_process" = require(`child_process`)
Const deepResolve
deepResolve: any = require(`super-resolve`)
Const deepResolve
deepResolve: any = require(`super-resolve`)
determineLinkType
determineLinkType: any
determineLinkType
determineLinkType: any
environments
environments: object
Type declaration
-
empty project: function
- empty project(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
multiple workspaces: function
- multiple workspaces(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
one regular dependency: function
- one regular dependency(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two development dependencies: function
- two development dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two regular dependencies: function
- two regular dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two regular dependencies, two development dependencies: function
- two regular dependencies, two development dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
various field types: function
- various field types(path: any): Promise<void>
-
Parameters
Returns Promise<void>
environments
environments: object
Type declaration
-
empty project: function
- empty project(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
multiple workspaces: function
- multiple workspaces(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
one regular dependency: function
- one regular dependency(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two development dependencies: function
- two development dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two regular dependencies: function
- two regular dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two regular dependencies, two development dependencies: function
- two regular dependencies, two development dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
various field types: function
- various field types(path: any): Promise<void>
-
Parameters
Returns Promise<void>
environments
environments: object
Type declaration
-
empty project: function
- empty project(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
multiple workspaces: function
- multiple workspaces(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
one regular dependency: function
- one regular dependency(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two development dependencies: function
- two development dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two regular dependencies: function
- two regular dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
two regular dependencies, two development dependencies: function
- two regular dependencies, two development dependencies(path: any): Promise<void>
-
Parameters
Returns Promise<void>
-
various field types: function
- various field types(path: any): Promise<void>
-
Parameters
Returns Promise<void>
Const execPromise
execPromise: __promisify__ = promisify(exec)
execUtils
execUtils: "/builds/BootPM/www.yarnpkg.cn/packages/yarnpkg-core/sources/execUtils"
fs
fs: object
Type declaration
-
FsLinkType: any
-
determineLinkType: any
-
writeFile: any
-
writeJson: any
fs
fs: object
Type declaration
-
writeFile: any
-
writeJson: any
fs
fs: object
Type declaration
-
FsLinkType: any
-
determineLinkType: any
getPackageArchivePath
getPackageArchivePath: any
getPackageDirectoryPath
getPackageDirectoryPath: any
getPackageDirectoryPath
getPackageDirectoryPath: any
getPackageHttpArchivePath
Const globalName
globalName: string = makeTemporaryEnv.getPackageManagerName()
Let httpsCertificates
httpsCertificates: object
Type declaration
-
ca: CertificateCreationResult
-
server: CertificateCreationResult
isAbsolute
isAbsolute: isAbsolute
Const lockfile100
lockfile100: string = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "1.0.0"resolved "https://registry.yarnpkg.com/no-deps/-/no-deps-1.0.0.tgz#39453512f8241e2d20307975e8d9eb6314f7bf61"integrity sha1-OUU1EvgkHi0gMHl16NnrYxT3v2E=`.replace(/^\n+/g, ``)
Const lockfile200
lockfile200: string = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "2.0.0"resolved "https://registry.yarnpkg.com/no-deps/-/no-deps-2.0.0.tgz#39453512f8241e2d20307975e8d9eb6314f7bf62"integrity sha1-OUU1EvgkHi0gMHl16NnrYxT3v2E=`.replace(/^\n+/g, ``)
Const mte
mte
: PackageDriver = generatePkgDriver({getName() {return `yarn`;},async runDriver(path,[command, ...args],{cwd, projectFolder, registryUrl, env, ...config},) {const rcEnv: Record<string, any> = {};for (const [key, value] of Object.entries(config))rcEnv[`YARN_${key.replace(/([A-Z])/g, `_$1`).toUpperCase()}`] = Array.isArray(value) ? value.join(`;`) : value;const nativePath = npath.fromPortablePath(path);const nativeHomePath = npath.dirname(nativePath);const cwdArgs = typeof projectFolder !== `undefined`? [projectFolder]: [];const yarnBinary = require.resolve(`${__dirname}/../../../../yarnpkg-cli/bundles/yarn.js`);const res = await execFile(process.execPath, [yarnBinary, ...cwdArgs, command, ...args], {cwd: cwd || path,env: {[`HOME`]: nativeHomePath,[`USERPROFILE`]: nativeHomePath,[`PATH`]: `${nativePath}/bin${delimiter}${process.env.PATH}`,[`YARN_IS_TEST_ENV`]: `true`,[`YARN_GLOBAL_FOLDER`]: `${nativePath}/.yarn/global`,[`YARN_NPM_REGISTRY_SERVER`]: registryUrl,[`YARN_UNSAFE_HTTP_WHITELIST`]: new URL(registryUrl).hostname,// Otherwise we'd send telemetry event when running tests[`YARN_ENABLE_TELEMETRY`]: `0`,// Otherwise snapshots relying on this would break each time it's bumped[`YARN_CACHE_KEY_OVERRIDE`]: `0`,// Otherwise the output isn't stable between runs[`YARN_ENABLE_TIMERS`]: `false`,[`YARN_ENABLE_PROGRESS_BARS`]: `false`,[`FORCE_COLOR`]: `0`,// Otherwise the output wouldn't be the same on CI vs non-CI[`YARN_ENABLE_INLINE_BUILDS`]: `false`,[`YARN_PREFER_AGGREGATE_CACHE_INFO`]: `false`,// Otherwise we would more often test the fallback rather than the real logic[`YARN_PNP_FALLBACK_MODE`]: `none`,// Otherwise tests fail on systems where this is globally set to true[`YARN_ENABLE_GLOBAL_CACHE`]: `false`,// Older versions of Windows need this set to not have node throw an error[`NODE_SKIP_PLATFORM_CHECK`]: `1`,...rcEnv,...env,},});if (process.env.JEST_LOG_SPAWNS) {console.log(`===== stdout:`);console.log(res.stdout);console.log(`===== stderr:`);console.log(res.stderr);}return res;},})
Let packageRegistryPromise
Const pipelinePromise
pipelinePromise: __promisify__ = promisify(stream.pipeline)
Const pipelinePromise
pipelinePromise: __promisify__ = promisify(stream.pipeline)
Let recording
recording
: Array<Request> | null = null
Const semver
semver: any = require(`semver`)
semverUtils
semverUtils: "/builds/BootPM/www.yarnpkg.cn/packages/yarnpkg-core/sources/semverUtils"
setPackageWhitelist
setPackageWhitelist: any
startPackageServer
startPackageServer: any
Const staticServer
staticServer: Handler = serveStatic(npath.fromPortablePath(require(`pkg-tests-fixtures`)))
tests
tests: object
Type declaration
-
getPackageDirectoryPath: any
tests
tests: object
Type declaration
-
startPackageServer: any
-
validLogins: any
Const tests
tests: Array<[]> = [[`no-deps@npm:^1.0.0`, `no-deps@npm:2.0.0`, false],[`no-deps@npm:^1.0.0`, `no-deps@npm:1.0.0`, true],[`no-deps@npm:^1.0.0`, `no-deps-bins@npm:1.0.0`, false],[`no-deps@npm:no-deps-bins@^1.0.0`, `no-deps-bins@npm:1.0.0`, true],[`util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, `util-deprecate@https://github.com/yarnpkg/util-deprecate.git`, false],[`util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, `util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=475fb6857cd23fafff20c1be846c1350abf8e6d4`, false],[`util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, `util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, true],]
tests
tests: object
Type declaration
-
getPackageArchivePath: any
tests
tests: object
Type declaration
-
getPackageDirectoryPath: any
Const validLogins
validLogins: object = {fooUser: new Login(`foo-user`),barUser: new Login(`bar-user`),otpUser: new Login(`otp-user`, {otp: true}),otpUserWithNotice: new Login(`otp-user-with-notice`, {otp: true, notice: true}),} as const
validLogins
validLogins: object
validLogins
validLogins: object
validLogins
validLogins: object
validLogins
validLogins: any
validLogins
validLogins: any
validLogins
validLogins: object
Let whitelist
whitelist: Map<any, any> = new Map()
yarn
yarn: "/builds/BootPM/www.yarnpkg.cn/packages/acceptance-tests/pkg-tests-core/sources/utils/yarn"
Const yarnrcRegexp
yarnrcRegexp: RegExp = /^yarnPath:/