We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5247325 commit 922d20fCopy full SHA for 922d20f
.changeset/serious-grapes-cheat.md
@@ -0,0 +1,5 @@
1
+---
2
+'extractinator': patch
3
4
+
5
+fix: **VERSION** is not defined error
tsup.config.ts
@@ -1,4 +1,5 @@
import { defineConfig } from 'tsup'
+import pkg from './package.json'
export default defineConfig([
{
@@ -19,5 +20,8 @@ export default defineConfig([
19
20
target: 'esnext',
21
format: ['esm'],
22
entryPoints: ['src/exports/cli.ts'],
23
+ define: {
24
+ __VERSION__: `'${pkg.version}'`,
25
+ },
26
},
27
])
0 commit comments