Skip to content

Commit

Permalink
fix: build works
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Dec 13, 2024
1 parent 2762a3f commit 7af1cb4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/nimiq-albatross-policy/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'src/index',
'./src/index',
],
declaration: true,
clean: true,
Expand Down
4 changes: 1 addition & 3 deletions packages/nimiq-albatross-policy/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { powi } from '../../nimiq-supply-calculator/src/utils'

/**
* The total supply of the cryptocurrency, in LUNA.
*/
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/nimiq-rewards-calculator/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'src/index',
'./src/index',
],
declaration: true,
clean: true,
Expand Down
8 changes: 4 additions & 4 deletions packages/nimiq-supply-calculator/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/nimiq-validators-trustscore/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'src/index',
'./src/index',
],
declaration: true,
clean: true,
Expand Down

0 comments on commit 7af1cb4

Please sign in to comment.