Skip to content

Commit

Permalink
imports in build files now has js extension to avoid runtime problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
muratgozel committed Apr 5, 2023
1 parent e5e5545 commit 4c047fa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/browser/cjs/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/es/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "monval",
"version": "v2.4.3",
"version": "v2.4.4",
"description": "Precise and simple money utility with exchange rates support.",
"imports": {
"#src/*": "./build/*.js"
"#src/*": "./build/*"
},
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export {currencyCodes} from './currencies'
export {monval, Monval, Account} from './monval'
export {currencyCodes} from './currencies.js'
export {monval, Monval, Account} from './monval.js'

export type {CurrencyCode} from './currencies'
2 changes: 1 addition & 1 deletion src/monval.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {ExchangeRatesObject, Money} from 'monval'
import type {CurrencyCode} from './currencies'

import {currencyCodes} from './currencies'
import {currencyCodes} from './currencies.js'

export class Monval {
currencyCodes: CurrencyCode[] = Array.from(currencyCodes)
Expand Down

0 comments on commit 4c047fa

Please sign in to comment.