Skip to content

Commit

Permalink
chore: fix glob usage in script (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema authored Dec 23, 2023
1 parent cc56249 commit 77e4d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/inject-version.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import fs from 'node:fs';
import { globSync } from 'glob';
import { globSync } from '@bundled-es-modules/glob';
import { execSync } from 'child_process';

const { version, name } = JSON.parse(fs.readFileSync('package.json', 'utf-8'));

// examples
const packageJSONs = globSync('./examples/*/*/package.json', {});
const packageJSONs = globSync('./examples/*/*/package.json', { fs });
packageJSONs.forEach(function (filePath) {
let pkg = JSON.parse(fs.readFileSync(filePath, 'utf-8'));
if (pkg.devDependencies) {
Expand Down

0 comments on commit 77e4d44

Please sign in to comment.