From f56be6c2093fbdbf743b4e64dd7a5eb2fd818fe1 Mon Sep 17 00:00:00 2001 From: onmax Date: Fri, 13 Dec 2024 23:29:18 +1300 Subject: [PATCH] fix: build works --- package.json | 2 +- packages/nimiq-albatross-policy/build.config.ts | 2 +- packages/nimiq-albatross-policy/src/constants.ts | 4 +--- packages/nimiq-rewards-calculator/build.config.ts | 2 +- packages/nimiq-supply-calculator/build.config.ts | 8 ++++---- packages/nimiq-validators-trustscore/build.config.ts | 2 +- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 81440a2..4c65684 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dev": "pnpm run dev:packages && nuxi dev --remote --dotenv .env.testnet", "dev:local": "pnpm run dev:packages && nuxi dev --dotenv .env.local", "dev:packages": "pnpm --filter=./packages/* --parallel run dev", - "build": "nuxi build", + "build": "pnpm --filter=./packages/* run build && nuxi build", "generate": "nuxi generate", "preview": "npx nuxthub preview", "postinstall": "nuxi prepare", diff --git a/packages/nimiq-albatross-policy/build.config.ts b/packages/nimiq-albatross-policy/build.config.ts index 0bd008c..f9d8ad0 100644 --- a/packages/nimiq-albatross-policy/build.config.ts +++ b/packages/nimiq-albatross-policy/build.config.ts @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ entries: [ - 'src/index', + './src/index', ], declaration: true, clean: true, diff --git a/packages/nimiq-albatross-policy/src/constants.ts b/packages/nimiq-albatross-policy/src/constants.ts index 57c9f9b..495b8b4 100644 --- a/packages/nimiq-albatross-policy/src/constants.ts +++ b/packages/nimiq-albatross-policy/src/constants.ts @@ -1,5 +1,3 @@ -import { powi } from '../../nimiq-supply-calculator/src/utils' - /** * The total supply of the cryptocurrency, in LUNA. */ @@ -40,7 +38,7 @@ export const PROOF_OF_WORK_INITIAL_SUPPLY = 2520000000e5 /** * The speed of the emission curve, in Lunas. */ -export const PROOF_OF_WORK_EMISSION_SPEED = powi(2, 22) +export const PROOF_OF_WORK_EMISSION_SPEED = 4_194_304 // same as powi(2, 22) /** * The block number at which the emission tail starts. diff --git a/packages/nimiq-rewards-calculator/build.config.ts b/packages/nimiq-rewards-calculator/build.config.ts index 0bd008c..f9d8ad0 100644 --- a/packages/nimiq-rewards-calculator/build.config.ts +++ b/packages/nimiq-rewards-calculator/build.config.ts @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ entries: [ - 'src/index', + './src/index', ], declaration: true, clean: true, diff --git a/packages/nimiq-supply-calculator/build.config.ts b/packages/nimiq-supply-calculator/build.config.ts index 1bea51e..58e7679 100644 --- a/packages/nimiq-supply-calculator/build.config.ts +++ b/packages/nimiq-supply-calculator/build.config.ts @@ -2,10 +2,10 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ entries: [ - 'src/index', - 'src/utils', - 'src/pow', - 'src/pos', + './src/index', + './src/utils', + './src/pow', + './src/pos', ], declaration: true, clean: true, diff --git a/packages/nimiq-validators-trustscore/build.config.ts b/packages/nimiq-validators-trustscore/build.config.ts index 0bd008c..f9d8ad0 100644 --- a/packages/nimiq-validators-trustscore/build.config.ts +++ b/packages/nimiq-validators-trustscore/build.config.ts @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ entries: [ - 'src/index', + './src/index', ], declaration: true, clean: true,