Skip to content

Commit d01995a

Browse files
committed
fix: another attempt at getting at the version number
1 parent 5933bd3 commit d01995a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env node
22

33
import { program } from "commander";
4+
45
import { notionPull } from "./pull";
56
// note: just getting process.en.npm_package_version will return the version of the client package!
67
// So in our npm scripts we write out this version info and then pull it in here (tsc can
@@ -9,6 +10,9 @@ import { notionPull } from "./pull";
910

1011
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
1112
//console.log(`notion-pull version ${version.version}`);
13+
const pkg = require("../package.json");
14+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
15+
console.log(`notion-pull version ${pkg.version}`);
1216

1317
program.name("notion-pull").description("");
1418
program

0 commit comments

Comments
 (0)