Skip to content

Commit

Permalink
Update banner.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Jul 31, 2023
1 parent 36d62e1 commit 7d0a7c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build/banner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import fs from 'node:fs/promises'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

const year = new Date().getFullYear()

const __dirname = path.dirname(fileURLToPath(import.meta.url))

const pkgJson = path.join(__dirname, '../package.json')
const pkgJsonString = await fs.readFile(pkgJson, 'utf8')
const pkg = JSON.parse(await fs.readFile(pkgJson, 'utf8'))

const pkg = JSON.parse(pkgJsonString)
const year = new Date().getFullYear()

function getBanner(pluginFilename) {
return `/*!
Expand Down

0 comments on commit 7d0a7c3

Please sign in to comment.