find-yarn-workspace-root2
Advanced tools
Comparing version 1.2.49 to 1.2.50
@@ -6,2 +6,12 @@ # Change Log | ||
## [1.2.50](https://github.com/bluelovers/ws-yarn-workspaces/compare/find-yarn-workspace-root2@1.2.49...find-yarn-workspace-root2@1.2.50) (2024-05-03) | ||
### 🛠 Build System | ||
* update typescript ([ffa656a](https://github.com/bluelovers/ws-yarn-workspaces/commit/ffa656aefe53966db445d52234eb0efe4651e3dd)) | ||
## [1.2.49](https://github.com/bluelovers/ws-yarn-workspaces/compare/find-yarn-workspace-root2@1.2.48...find-yarn-workspace-root2@1.2.49) (2022-11-14) | ||
@@ -8,0 +18,0 @@ |
11
core.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.readPackageJSON = exports.extractWorkspaces = exports.isMatchWorkspaces = exports.checkWorkspaces = exports.findWorkspaceRoot = void 0; | ||
exports.findWorkspaceRoot = findWorkspaceRoot; | ||
exports.checkWorkspaces = checkWorkspaces; | ||
exports.isMatchWorkspaces = isMatchWorkspaces; | ||
exports.extractWorkspaces = extractWorkspaces; | ||
exports.readPackageJSON = readPackageJSON; | ||
const tslib_1 = require("tslib"); | ||
@@ -38,3 +42,2 @@ const upath2_1 = require("upath2"); | ||
} | ||
exports.findWorkspaceRoot = findWorkspaceRoot; | ||
function checkWorkspaces(current, initial) { | ||
@@ -62,3 +65,2 @@ const manifest = readPackageJSON(current); | ||
} | ||
exports.checkWorkspaces = checkWorkspaces; | ||
function isMatchWorkspaces(relativePath, workspaces) { | ||
@@ -68,3 +70,2 @@ let ls = (0, micromatch_1.default)([relativePath], workspaces); | ||
} | ||
exports.isMatchWorkspaces = isMatchWorkspaces; | ||
function extractWorkspaces(manifest) { | ||
@@ -74,3 +75,2 @@ const workspaces = (manifest || {}).workspaces; | ||
} | ||
exports.extractWorkspaces = extractWorkspaces; | ||
function readPackageJSON(dir) { | ||
@@ -83,3 +83,2 @@ const file = (0, upath2_1.join)(dir, 'package.json'); | ||
} | ||
exports.readPackageJSON = readPackageJSON; | ||
findWorkspaceRoot.findWorkspaceRoot = findWorkspaceRoot; | ||
@@ -86,0 +85,0 @@ findWorkspaceRoot.readPackageJSON = readPackageJSON; |
{ | ||
"name": "find-yarn-workspace-root2", | ||
"version": "1.2.49", | ||
"version": "1.2.50", | ||
"description": "Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com", | ||
@@ -45,3 +45,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "8939271c9e56d8e75885a1b9c243031eee6a8271" | ||
"gitHead": "089606f66f3c5501a8f3fdfc42e5a85b57f4d0e9" | ||
} |
Sorry, the diff of this file is not supported yet
38275
122