Use clearer name for package.json variable

pull/45/head
Nikita Karamov 2022-02-10 22:20:53 +01:00
parent 4bd28fa8aa
commit dd3afd72b3
No known key found for this signature in database
GPG Key ID: 3C8E688C96EEB9C9
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
const pkg = require("./package.json");
const bannerText = `${pkg.name} v${pkg.version}`;
const package_ = require("./package.json");
const bannerText = `${package_.name} v${package_.version}`;
module.exports = {
map: {

View File

@ -1,6 +1,6 @@
import { defineConfig } from "vite";
import * as path from "path";
import pkg from "./package.json";
import package_ from "./package.json";
export default defineConfig({
esbuild: {
@ -17,7 +17,7 @@ export default defineConfig({
},
rollupOptions: {
output: {
banner: `/*! ${pkg.name} v${pkg.version} */`,
banner: `/*! ${package_.name} v${package_.version} */`,
},
},
},