Skip to content

Commit

Permalink
fix: package.json asset build in pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarpl committed Jun 19, 2023
1 parent e56d79a commit c546b5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/http-server/app/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { startProcess } from '@http-server/generic'
import { readFileSync } from 'fs'
import { join as pathJoin } from 'path'
import fs from 'fs'
import path from 'path'
/* eslint-disable no-console */

const packageInfo = JSON.parse(readFileSync(pathJoin(__dirname, './../package.json')).toString('utf-8'))
const packageInfo = JSON.parse(fs.readFileSync(path.join(__dirname, './../package.json')).toString('utf-8'))

console.log('process started') // This is a message all Sofie processes log upon startup
console.log(`version: ${packageInfo.version}`)
Expand Down
6 changes: 3 additions & 3 deletions apps/single-app/app/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { startSingleApp } from './singleApp'
import { readFileSync } from 'fs'
import { join as pathJoin } from 'path'
import fs from 'fs'
import path from 'path'

const packageInfo = JSON.parse(readFileSync(pathJoin(__dirname, './../package.json')).toString('utf-8'))
const packageInfo = JSON.parse(fs.readFileSync(path.join(__dirname, './../package.json')).toString('utf-8'))

// eslint-disable-next-line no-console
console.log('process started') // This is a message all Sofie processes log upon startup
Expand Down

0 comments on commit c546b5f

Please sign in to comment.