Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Conversation

@juliangruber
Copy link
Member

@juliangruber juliangruber commented Mar 16, 2023

For tracking how updates are rolled out

CheckerNetwork/desktop#584


const { FIL_WALLET_ADDRESS } = process.env

const pkg = JSON.parse(await fs.readFile(join(paths.repoRoot, 'package.json')))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Node.js does not support importing JSON files yet? I vaguely remember import from ... followed by assert type json

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately there's two issues with that:

$ nt

> @filecoin-station/core@2.1.0 test
> prettier --check . && standard && node--test

Checking formatting...
All matched files use Prettier code style!
standard: Use JavaScript Standard Style (https://standardjs.com)
  /Users/julian/dev/filecoin-station/core/lib/telemetry.js:8:35: Parsing error: Unexpected token assert (null)
$ ./bin/station.js
(node:56462) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

@juliangruber juliangruber merged commit af1c83e into main Mar 16, 2023
@juliangruber juliangruber deleted the add/telemetry-version branch March 16, 2023 21:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants