We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1185062 commit 984343eCopy full SHA for 984343e
src/const.ts
@@ -0,0 +1 @@
1
+export const version = process.env.PKG_VERSION;
src/index.ts
@@ -1,3 +1,4 @@
+export * from './const';
2
export * from './normalize-error';
3
export * from './try-sync-flatten';
4
export * from './try-callback-flatten';
src/types/env.d.ts
@@ -0,0 +1,9 @@
+declare module 'process' {
+ interface ProcessEnv {
+ // package name
+ PKG_NAME: string;
5
+
6
+ // package version
7
+ PKG_VERSION: string;
8
+ }
9
+}
0 commit comments