Skip to content

Commit

Permalink
package resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoMoretti committed Oct 13, 2024
1 parent 6ddbdb4 commit 5a466d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-ligers-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"notion-downloader": patch
---

version reporting
5 changes: 4 additions & 1 deletion packages/notion-downloader/src/utils/get-package-info.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import path from "path"
import { fileURLToPath } from "url"
import fs from "fs-extra"
import { type PackageJson } from "type-fest"

export function getPackageInfo() {
const packageJsonPath = path.join("package.json")
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const packageJsonPath = path.resolve(__dirname, "..", "package.json")

return fs.readJSONSync(packageJsonPath) as PackageJson
}
1 change: 1 addition & 0 deletions packages/notion-downloader/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compilerOptions": {
"isolatedModules": false,
"baseUrl": ".",
"module": "ESNext",
"paths": {
"@/*": ["./*"]
}
Expand Down

0 comments on commit 5a466d6

Please sign in to comment.