update
This commit is contained in:
15
package/node_modules/@npmcli/name-from-folder/LICENSE
generated
vendored
Normal file
15
package/node_modules/@npmcli/name-from-folder/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
The ISC License
|
||||
|
||||
Copyright npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL WARRANTIES WITH REGARD
|
||||
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS. IN NO EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
||||
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
SOFTWARE.
|
7
package/node_modules/@npmcli/name-from-folder/lib/index.js
generated
vendored
Normal file
7
package/node_modules/@npmcli/name-from-folder/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
const { basename, dirname } = require('path')
|
||||
|
||||
const getName = (parent, base) =>
|
||||
parent.charAt(0) === '@' ? `${parent}/${base}` : base
|
||||
|
||||
module.exports = dir => dir ? getName(basename(dirname(dir)), basename(dir))
|
||||
: false
|
43
package/node_modules/@npmcli/name-from-folder/package.json
generated
vendored
Normal file
43
package/node_modules/@npmcli/name-from-folder/package.json
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "@npmcli/name-from-folder",
|
||||
"version": "2.0.0",
|
||||
"files": [
|
||||
"bin/",
|
||||
"lib/"
|
||||
],
|
||||
"main": "lib/index.js",
|
||||
"description": "Get the package name from a folder path",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/npm/name-from-folder.git"
|
||||
},
|
||||
"author": "GitHub Inc.",
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"test": "tap",
|
||||
"snap": "tap",
|
||||
"lint": "eslint \"**/*.js\"",
|
||||
"postlint": "template-oss-check",
|
||||
"template-oss-apply": "template-oss-apply --force",
|
||||
"lintfix": "npm run lint -- --fix",
|
||||
"posttest": "npm run lint"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^4.0.1",
|
||||
"@npmcli/template-oss": "4.11.0",
|
||||
"tap": "^16.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
|
||||
},
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.11.0"
|
||||
},
|
||||
"tap": {
|
||||
"nyc-arg": [
|
||||
"--exclude",
|
||||
"tap-snapshots/**"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user