summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-16 16:46:24 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-16 16:46:24 -0700
commit70e65cbf4e8966adcc8ac31099a03872fe2ce5f8 (patch)
tree16d6bac33c19ebf19e080759d9b81aec2ad91788
parenta017fb0fbd9c7fd34a6795ba4153b8b8a7819ecd (diff)
Tell dnt to use version in root package.json
-rw-r--r--packages/server/build_npm.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/build_npm.ts b/packages/server/build_npm.ts
index 578cf5c..1b250d4 100644
--- a/packages/server/build_npm.ts
+++ b/packages/server/build_npm.ts
@@ -1,6 +1,7 @@
import { build, emptyDir } from 'https://deno.land/x/dnt@0.38.0/mod.ts';
const outDir = './npm';
+const lernaPackageJSON: { version: string } = JSON.parse(await Deno.readTextFile('./package.json'));
await emptyDir(outDir);
@@ -19,8 +20,7 @@ await build({
// package.json values
package: {
name: '@simplewebauthn/server',
- // version: Deno.args[0],
- version: '7.4.0',
+ version: lernaPackageJSON.version,
description: 'SimpleWebAuthn for Servers',
license: 'MIT',
author: 'Matthew Miller <matthew@millerti.me>',