Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Karrys <luke@lukekarrys.com>2022-03-29 01:55:02 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-03-30 00:51:53 +0300
commitaac01b89caf6336a2eb34d696296303cdadd5c08 (patch)
treec322cc32001ab169bd2e9e335ba7e4a45f31b4aa /workspaces/libnpmpublish
parentb48a2bfde3745fa21ea4fc18d6f562fd82f82545 (diff)
deps: @npmcli/template-oss@3.2.1
- `no-shadow` was disabled for the cli and arborist due to the amount of changes required. These should be fixed later. - Manually updated linting in the cli root to match closer to what template-oss does - Included docs to be managed with template-oss. This required adding an empty test for now, with the plan to add real tests later.
Diffstat (limited to 'workspaces/libnpmpublish')
-rw-r--r--workspaces/libnpmpublish/.eslintrc.js3
-rw-r--r--workspaces/libnpmpublish/.gitignore22
-rw-r--r--workspaces/libnpmpublish/.npmrc3
-rw-r--r--workspaces/libnpmpublish/SECURITY.md3
-rw-r--r--workspaces/libnpmpublish/package.json20
5 files changed, 23 insertions, 28 deletions
diff --git a/workspaces/libnpmpublish/.eslintrc.js b/workspaces/libnpmpublish/.eslintrc.js
index 022767bc3..0e8ad0071 100644
--- a/workspaces/libnpmpublish/.eslintrc.js
+++ b/workspaces/libnpmpublish/.eslintrc.js
@@ -1,4 +1,4 @@
-// This file is automatically added by @npmcli/template-oss. Do not edit.
+/* This file is automatically added by @npmcli/template-oss. Do not edit. */
const { readdirSync: readdir } = require('fs')
@@ -7,6 +7,7 @@ const localConfigs = readdir(__dirname)
.map((file) => `./${file}`)
module.exports = {
+ root: true,
extends: [
'@npmcli',
...localConfigs,
diff --git a/workspaces/libnpmpublish/.gitignore b/workspaces/libnpmpublish/.gitignore
index 6ed44c72b..617e50ca0 100644
--- a/workspaces/libnpmpublish/.gitignore
+++ b/workspaces/libnpmpublish/.gitignore
@@ -4,20 +4,18 @@
/*
# keep these
-!/.commitlintrc.js
-!/.npmrc
-!/.eslintrc*
-!/.github
+!/.eslintrc.local.*
!**/.gitignore
-!/package.json
-!/docs
-!/bin
-!/lib
+!/docs/
+!/tap-snapshots/
+!/test/
!/map.js
-!/tap-snapshots
-!/test
-!/scripts
+!/scripts/
!/README*
!/LICENSE*
-!/SECURITY*
!/CHANGELOG*
+!/.eslintrc.js
+!/.gitignore
+!/bin/
+!/lib/
+!/package.json
diff --git a/workspaces/libnpmpublish/.npmrc b/workspaces/libnpmpublish/.npmrc
deleted file mode 100644
index 878b7ddef..000000000
--- a/workspaces/libnpmpublish/.npmrc
+++ /dev/null
@@ -1,3 +0,0 @@
-;This file is automatically added by @npmcli/template-oss. Do not edit.
-
-package-lock=false
diff --git a/workspaces/libnpmpublish/SECURITY.md b/workspaces/libnpmpublish/SECURITY.md
deleted file mode 100644
index a93106d0c..000000000
--- a/workspaces/libnpmpublish/SECURITY.md
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
-
-Please send vulnerability reports through [hackerone](https://hackerone.com/github).
diff --git a/workspaces/libnpmpublish/package.json b/workspaces/libnpmpublish/package.json
index 48b4c2f91..3828f3579 100644
--- a/workspaces/libnpmpublish/package.json
+++ b/workspaces/libnpmpublish/package.json
@@ -9,28 +9,29 @@
"Claudia Hernández <claudia@npmjs.com>"
],
"files": [
- "bin",
- "lib"
+ "bin/",
+ "lib/"
],
"license": "ISC",
"scripts": {
"eslint": "eslint",
- "lint": "eslint '**/*.js'",
+ "lint": "eslint \"**/*.js\"",
"lintfix": "npm run lint -- --fix",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"test": "tap",
"posttest": "npm run lint",
- "postlint": "npm-template-check",
+ "postlint": "template-oss-check",
"snap": "tap",
- "template-copy": "npm-template-copy --force"
+ "template-oss-apply": "template-oss-apply --force"
},
"tap": {
"check-coverage": true
},
"devDependencies": {
- "@npmcli/template-oss": "^2.4.2",
+ "@npmcli/eslint-config": "^3.0.1",
+ "@npmcli/template-oss": "3.2.1",
"libnpmpack": "^4.0.0",
"lodash.clonedeep": "^4.5.0",
"nock": "^13.2.4",
@@ -38,7 +39,7 @@
},
"repository": {
"type": "git",
- "url": "https://github.com/npm/cli",
+ "url": "https://github.com/npm/cli.git",
"directory": "workspaces/libnpmpublish"
},
"bugs": "https://github.com/npm/cli/issues",
@@ -51,9 +52,10 @@
"ssri": "^8.0.1"
},
"engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16"
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
},
"templateOSS": {
- "version": "2.9.2"
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
+ "version": "3.2.1"
}
}