@dao-style/vue-cli-plugin-lint
Advanced tools
Comparing version 0.0.23 to 0.0.24
const fs = require('fs'); | ||
const { resolve } = require('path'); | ||
const { ESLint } = require('eslint'); | ||
@@ -7,6 +8,9 @@ | ||
const tsconfig = JSON.parse(fs.readFileSync('tsconfig.json', 'utf8')); | ||
const srcDir = resolve('src/**/*.d.ts'); | ||
stagedFilenames.push('src/**/*.d.ts'); | ||
stagedFilenames.push(srcDir); | ||
tsconfig.include = stagedFilenames; | ||
tsconfig.compilerOptions.path['@/*'] = ['../src/*']; | ||
tsconfig.compilerOptions.paths['@/*'] = ['../src/*']; | ||
fs.writeFileSync('node_modules/tsconfig.lint.json', JSON.stringify(tsconfig)); | ||
@@ -13,0 +17,0 @@ |
{ | ||
"name": "@dao-style/vue-cli-plugin-lint", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
22088
631