Skip to content

Commit

Permalink
chore: update inject-version script (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored Oct 9, 2024
1 parent 3b3b124 commit 0bd7e44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/inject-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
* See https://pnpm.io/it/next/cli/run#enable-pre-post-scripts
*/
import fs from 'node:fs'
import packageJson from '../packages/appkit/package.json' assert { type: 'json' }
import path from 'node:path'
import { fileURLToPath } from 'node:url'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const packageJsonPath = path.join(__dirname, '../packages/appkit/package.json')
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))

const filePath = 'packages/appkit/exports/constants.ts'

Expand Down

0 comments on commit 0bd7e44

Please sign in to comment.