Skip to content

Commit 9de4089

Browse files
committed
fix(2.0.8): find own package.json correctly
1 parent e3f11f3 commit 9de4089

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hackbg/ubik",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"type": "module",
55
"main": "ubik.mjs",
66
"homepage": "https://github.com/hackbg/ubik",

package.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import { fileURLToPath } from 'node:url'
55
import { resolve, relative, dirname } from 'node:path'
66
import { readFileSync, statSync } from 'node:fs'
77
import { Console, bold, colors } from '@hackbg/logs'
8-
const Package = JSON.parse(readFileSync(resolve(dirname(dirname(fileURLToPath(import.meta.url))), 'package.json'), 'utf8'))
8+
const Package = JSON.parse(readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), 'package.json'), 'utf8'))
99
const console = new Console(`@hackbg/ubik(${bold(Package.version)})`)
1010
export { Package as default, console, bold, colors }

0 commit comments

Comments
 (0)