File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33import { program } from "commander" ;
4+
45import { 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
1317program . name ( "notion-pull" ) . description ( "" ) ;
1418program
You can’t perform that action at this time.
0 commit comments