Skip to content

Commit

Permalink
fixup! move require to top
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jun 3, 2024
1 parent ce1f67f commit 907d08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { readFile, writeFile } = require('node:fs/promises')
const { resolve } = require('node:path')
const parseJSON = require('json-parse-even-better-errors')

const updateDeps = require('./update-dependencies.js')
const updateScripts = require('./update-scripts.js')
Expand Down Expand Up @@ -170,7 +171,6 @@ class PackageJson {
// Load data from a comment
// /**package { "name": "foo", "version": "1.2.3", ... } **/
fromComment (data) {
const parseJSON = require('json-parse-even-better-errors')
data = data.split(/^\/\*\*package(?:\s|$)/m)

if (data.length < 2) {
Expand Down

0 comments on commit 907d08c

Please sign in to comment.