vue-cli-plugin-paratus
Advanced tools
Comparing version 0.0.3 to 0.0.31
@@ -8,2 +8,6 @@ const filesToDelete = [ | ||
// assert entryFile as main.ts | ||
// https://github.com/vuejs/vue-cli/issues/3049 | ||
const entryFile = 'src/main.ts' | ||
module.exports = (api, options) => { | ||
@@ -30,14 +34,10 @@ // add normalize | ||
// assert entryFile as main.ts | ||
// https://github.com/vuejs/vue-cli/issues/3049 | ||
const entryFile = 'src/main.ts' | ||
// delint this one file to avoid a lint warning | ||
api.afterInvoke(() => { | ||
const fs = require('fs') | ||
const contentMain = fs.readFileSync(api.resolve(entryFile), { | ||
const contentMain = fs.readFileSync(api.resolve(api.entryFile), { | ||
encoding: 'utf-8', | ||
}) | ||
const lines = contentMain.replace(';', '').replace('(h)', 'h') | ||
fs.writeFileSync(entryFile, lines, { | ||
fs.writeFileSync(api.entryFile, lines, { | ||
encoding: 'utf-8', | ||
@@ -44,0 +44,0 @@ }) |
{ | ||
"name": "vue-cli-plugin-paratus", | ||
"version": "0.0.3", | ||
"version": "0.0.31", | ||
"description": "A vue-cli plugin to do my usual prep; it’s probably not for you", | ||
@@ -5,0 +5,0 @@ "repository": { |
34908