Skip to content

Commit 7a419df

Browse files
committed
deps: @npmcli/map-workspaces@5.0.1
1 parent a3b5559 commit 7a419df

File tree

7 files changed

+124
-212
lines changed

7 files changed

+124
-212
lines changed

node_modules/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
!/@npmcli/git
2424
!/@npmcli/installed-package-contents
2525
!/@npmcli/map-workspaces
26+
!/@npmcli/map-workspaces/node_modules/
27+
/@npmcli/map-workspaces/node_modules/*
28+
!/@npmcli/map-workspaces/node_modules/@npmcli/
29+
/@npmcli/map-workspaces/node_modules/@npmcli/*
30+
!/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder
2631
!/@npmcli/metavuln-calculator
2732
!/@npmcli/name-from-folder
2833
!/@npmcli/node-gyp
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
The ISC License
2+
3+
Copyright npm, Inc.
4+
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted, provided that the above
7+
copyright notice and this permission notice appear in all copies.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL WARRANTIES WITH REGARD
10+
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11+
FITNESS. IN NO EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
12+
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
13+
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
14+
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
15+
SOFTWARE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const { basename, dirname } = require('path')
2+
3+
const getName = (parent, base) =>
4+
parent.charAt(0) === '@' ? `${parent}/${base}` : base
5+
6+
module.exports = dir => dir ? getName(basename(dirname(dir)), basename(dir))
7+
: false
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "@npmcli/name-from-folder",
3+
"version": "4.0.0",
4+
"files": [
5+
"bin/",
6+
"lib/"
7+
],
8+
"main": "lib/index.js",
9+
"description": "Get the package name from a folder path",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/npm/name-from-folder.git"
13+
},
14+
"author": "GitHub Inc.",
15+
"license": "ISC",
16+
"scripts": {
17+
"test": "tap",
18+
"snap": "tap",
19+
"lint": "npm run eslint",
20+
"postlint": "template-oss-check",
21+
"template-oss-apply": "template-oss-apply --force",
22+
"lintfix": "npm run eslint -- --fix",
23+
"posttest": "npm run lint",
24+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
25+
},
26+
"devDependencies": {
27+
"@npmcli/eslint-config": "^5.0.0",
28+
"@npmcli/template-oss": "4.27.1",
29+
"tap": "^16.3.2"
30+
},
31+
"engines": {
32+
"node": "^20.17.0 || >=22.9.0"
33+
},
34+
"templateOSS": {
35+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
36+
"version": "4.27.1",
37+
"publish": true
38+
},
39+
"tap": {
40+
"nyc-arg": [
41+
"--exclude",
42+
"tap-snapshots/**"
43+
]
44+
}
45+
}

node_modules/@npmcli/map-workspaces/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/map-workspaces",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"main": "lib/index.js",
55
"files": [
66
"bin/",
@@ -44,18 +44,18 @@
4444
},
4545
"devDependencies": {
4646
"@npmcli/eslint-config": "^5.0.0",
47-
"@npmcli/template-oss": "4.25.0",
47+
"@npmcli/template-oss": "4.27.1",
4848
"tap": "^16.0.1"
4949
},
5050
"dependencies": {
51-
"@npmcli/name-from-folder": "^3.0.0",
51+
"@npmcli/name-from-folder": "^4.0.0",
5252
"@npmcli/package-json": "^7.0.0",
5353
"glob": "^11.0.3",
5454
"minimatch": "^10.0.3"
5555
},
5656
"templateOSS": {
5757
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
58-
"version": "4.25.0",
58+
"version": "4.27.1",
5959
"publish": "true"
6060
}
6161
}

0 commit comments

Comments
 (0)