Skip to content

Commit

Permalink
fix: reference consuming component's package.json, rather than relati…
Browse files Browse the repository at this point in the history
…vely
  • Loading branch information
chrisfalaska committed Oct 21, 2024
1 parent 95d08ca commit 21cf238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build/postinstall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import chalk from 'chalk';
import { createRequire } from 'node:module';
import { resolve } from 'path';


const require = createRequire(import.meta.url);
const pjson = require('../package.json');
const pjson = require(resolve(process.cwd(), 'package.json'));

console.log(chalk.hex('#f26135')(`
Expand Down

0 comments on commit 21cf238

Please sign in to comment.