@yarnpkg/plugin-exec
Advanced tools
Comparing version
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadGeneratorFile = exports.makeLocator = exports.makeSpec = exports.parseSpec = void 0; | ||
exports.parseSpec = parseSpec; | ||
exports.makeSpec = makeSpec; | ||
exports.makeLocator = makeLocator; | ||
exports.loadGeneratorFile = loadGeneratorFile; | ||
const core_1 = require("@yarnpkg/core"); | ||
@@ -14,3 +17,2 @@ const fslib_1 = require("@yarnpkg/fslib"); | ||
} | ||
exports.parseSpec = parseSpec; | ||
function makeSpec({ parentLocator, path, generatorHash, protocol }) { | ||
@@ -33,7 +35,5 @@ const parentLocatorSpread = parentLocator !== null | ||
} | ||
exports.makeSpec = makeSpec; | ||
function makeLocator(ident, { parentLocator, path, generatorHash, protocol }) { | ||
return core_1.structUtils.makeLocator(ident, makeSpec({ parentLocator, path, generatorHash, protocol })); | ||
} | ||
exports.makeLocator = makeLocator; | ||
async function loadGeneratorFile(range, protocol, opts) { | ||
@@ -58,2 +58,1 @@ const { parentLocator, path } = core_1.structUtils.parseFileStyleRange(range, { protocol }); | ||
} | ||
exports.loadGeneratorFile = loadGeneratorFile; |
{ | ||
"name": "@yarnpkg/plugin-exec", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"license": "BSD-2-Clause", | ||
@@ -11,11 +11,11 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@yarnpkg/fslib": "^3.0.0", | ||
"@yarnpkg/fslib": "^3.1.2", | ||
"tslib": "^2.4.0" | ||
}, | ||
"peerDependencies": { | ||
"@yarnpkg/core": "^4.0.0" | ||
"@yarnpkg/core": "^4.2.1" | ||
}, | ||
"devDependencies": { | ||
"@yarnpkg/builder": "^4.0.0", | ||
"@yarnpkg/core": "^4.0.0" | ||
"@yarnpkg/builder": "^4.2.1", | ||
"@yarnpkg/core": "^4.2.1" | ||
}, | ||
@@ -28,3 +28,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "ssh://git@github.com/yarnpkg/berry.git", | ||
"url": "git+https://github.com/yarnpkg/berry.git", | ||
"directory": "packages/plugin-exec" | ||
@@ -31,0 +31,0 @@ }, |
@@ -56,3 +56,3 @@ # `@yarnpkg/plugin-exec` | ||
In order to let the script knows about the various predefined folders involved in the generation process, Yarn will inject a special `execEnv` global variable available to the script. This object's [interface](/api/interfaces/plugin_exec.execenv.html) is defined as such: | ||
In order to let the script knows about the various predefined folders involved in the generation process, Yarn will inject a special `execEnv` global variable available to the script. This object's [interface](https://yarnpkg.com/api/plugin-exec/interface/ExecEnv) is defined as such: | ||
@@ -59,0 +59,0 @@ | Property | Type | Description | |
23648
-0.35%366
-0.27%+ Added
- Removed
- Removed
Updated