Skip to content

Commit

Permalink
feat: import version from package.json
Browse files Browse the repository at this point in the history
This way we don't have to maintain the version in two places.

PR: #196
  • Loading branch information
jbergstroem authored Aug 26, 2023
1 parent d7311d0 commit 123e0a8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/reporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from "./version";
import { version } from "../package.json";
import type { TopsortEvent } from "./events";

interface Config {
Expand Down
1 change: 0 additions & 1 deletion src/version.ts

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Required for tslib to emit tree-shakeable code
"module": "es2020",
"moduleResolution": "node",
"resolveJsonModule": true,
"sourceMap": true,
"declaration": true,
"declarationMap": false,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Required for tslib to emit tree-shakeable code
"module": "es2020",
"moduleResolution": "node",
"resolveJsonModule": true,
"sourceMap": true,
"declaration": true,
"declarationMap": false,
Expand Down

0 comments on commit 123e0a8

Please sign in to comment.