Skip to content

Commit

Permalink
Fix compilation (#39)
Browse files Browse the repository at this point in the history
I didn't detect this because CI wasn't checking compilation.

Also, `.env` shouldn't have `export` in it.
  • Loading branch information
Eric-Arellano authored Jul 1, 2023
1 parent e3df48a commit a0079aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Compile
run: npm run build
- name: Lint
run: npm run lint
- name: Test
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Find your Organization ID number by clicking the P icon in the left sidebar, the
In this repository, create the file `.env` and fill in the relevant places:

```txt
export INFLUXDB_URL=http://localhost:8086
export INFLUXDB_BUCKET=metrics
export INFLUXDB_API_TOKEN=REPLACE WITH INFLUX TOKEN
export INFLUXDB_ORG=REPLACE WITH ORGANIZATION ID
INFLUXDB_URL=http://localhost:8086
INFLUXDB_BUCKET=metrics
INFLUXDB_API_TOKEN=REPLACE WITH INFLUX TOKEN
INFLUXDB_ORG=REPLACE WITH ORGANIZATION ID
```

Be careful to never share the `.env` file!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"build": "tsc",
"prestart": "tsc",
"start": "node lib/index.js",
"start": "node lib/src/index.js",
"test": "playwright test",
"fmt": "prettier --write .",
"fix": "prettier --write .; eslint --fix .",
Expand Down

0 comments on commit a0079aa

Please sign in to comment.