10000 Add warning about moving to scoped package · Demivan/eslint-plugin-vue@f5ba25e · GitHub
[go: up one dir, main page]

Skip to content

Commit f5ba25e

Browse files
committed
Add warning about moving to scoped package
1 parent fb40b9a commit f5ba25e

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
"lint": "eslint . --rulesdir eslint-internal-rules",
1111
"pretest": "npm run lint",
1212
"preversion": "npm run update && npm test",
13-
"update": "node ./tools/update.js"
13+
"update": "node ./tools/update.js",
14+
"install": "node ./tools/warn-moved.js"
1415
},
1516
"files": [
16-
"lib"
17+
"lib",
18+
"tools/warn-moved.js"
1719
],
1820
"homepage": "https://github.com/vuejs/eslint-plugin-vue#readme",
1921
"keywords": [
@@ -49,6 +51,7 @@
4951
"@types/node": "^4.2.16",
5052
"babel-eslint": "^8.1.2",
5153
"chai": "^4.1.0",
54+
"chalk": "^2.3.0",
5255
"eslint": "^4.14.0",
5356
"eslint-plugin-eslint-plugin": "^0.8.0",
5457
"eslint-plugin-html": "^4.0.1",

tools/warn-moved.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const chalk = require('chalk')
2+
const log = console.log
3+
4+
log(
5+
chalk.bold('***Warning***')
6+
)
7+
8+
log(
9+
chalk.dim('eslint-plugin-vue') +
10+
' -> ' +
11+
chalk.green.underline('@vue/eslint-plugin')
12+
)
13+
14+
log(
15+
chalk.bold('eslint-plugin-vue') +
16+
' has been republished as scoped package'
17+
)
18+
19+
log(
20+
'Please consider switching to ' +
21+
chalk.bold('@vue/eslint-plugin') + '\n\n'
22+
)

0 commit comments

Comments
 (0)
0