Skip to content

Commit

Permalink
build: update package import in forge config to specify json type
Browse files Browse the repository at this point in the history
  • Loading branch information
toxophilist committed Jan 27, 2025
1 parent d1f9c35 commit 8bd0564
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ocd/packages/desktop/forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import { FusesPlugin } from '@electron-forge/plugin-fuses';
import { FuseV1Options, FuseVersion } from '@electron/fuses';
import os from 'os'
// @ts-ignore
import * as Package from './package.json' with {type: "json"}
console.debug('Forge Config: package,json', Package)
// import * as Package from './package.json'
// import * as Package from './package.json' with {type: "json"}
import Package from './package.json' with {type: "json"}
console.debug('Forge Config: package.json.version', Package.version)

const archPos = process.argv.findIndex(arg => arg.startsWith('--arch'))
const arch = archPos > 0 ? process.argv[archPos+1] : os.arch()
Expand Down

0 comments on commit 8bd0564

Please sign in to comment.