diff --git a/package.json b/package.json index 81440a2..9ba6fe8 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "dev:mainnet:prod": "pnpm run dev:packages && nuxi dev --remote=production --dotenv .env.mainnet", "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", + "dev:packages": "pnpm --filter=./packages/* run dev", + "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,