Skip to content

Commit

Permalink
version([email protected]): Fix North Stars Export and Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed Dec 1, 2024
1 parent ad44f34 commit 87db872
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"sideEffects": false,
"type": "commonjs",
"types": "dist/index.d.ts",
"version": "0.0.9"
"version": "0.0.10"
}
13 changes: 12 additions & 1 deletion packages/actions/source/data.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import { actions as _bits } from '../data/bits.json'
import { actions as _bitsCrafts } from '../data/bits-crafts.json'
import { actions as _gems } from '../data/gems.json'
import { actions as _northStars } from '../data/north-stars.json'
import { actions as _northStarsCrafts } from '../data/north-stars-crafts.json'
import { Action } from './types'

export const bits = _bits as Action[]
export const bitsCrafts = _bitsCrafts as Action[]

export const gems = _gems as Action[]

export const allActions = [...bits, ...bitsCrafts, ...gems]
export const northStars = _northStars as Action[]
export const northStarsCrafts = _northStarsCrafts as Action[]

export const allActions = [
...bits,
...bitsCrafts,
...gems,
...northStars,
...northStarsCrafts,
]
2 changes: 1 addition & 1 deletion packages/actions/source/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const actionIoItemSchema = z
export const actionIoCurrencySchema = z
.object({
amount: z.number().finite(),
id: z.enum(['bit', 'coin', 'gem', 'northStar', 'second', 'usd']),
id: z.enum(['bit', 'coin', 'gem', 'north-star', 'second', 'usd']),
type: z.literal('currency'),
})
.strict()
Expand Down

0 comments on commit 87db872

Please sign in to comment.