Skip to content

Commit

Permalink
fix: refer to esm files in dist
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Oct 22, 2021
1 parent c804dbf commit b780fbd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/csv-generate/package.json
Expand Up @@ -29,11 +29,11 @@
},
"exports": {
".": {
"import": "./lib/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
},
"./sync": {
"import": "./lib/sync.js",
"import": "./dist/esm/sync.js",
"require": "./dist/cjs/sync.cjs"
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/csv-parse/package.json
Expand Up @@ -31,11 +31,11 @@
],
"exports": {
".": {
"import": "./lib/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
},
"./sync": {
"import": "./lib/sync.js",
"import": "./dist/esm/sync.js",
"require": "./dist/cjs/sync.cjs"
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/csv-stringify/package.json
Expand Up @@ -29,11 +29,11 @@
},
"exports": {
".": {
"import": "./lib/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
},
"./sync": {
"import": "./lib/sync.js",
"import": "./dist/esm/sync.js",
"require": "./dist/cjs/sync.cjs"
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/csv/test/api.types.ts
@@ -1,6 +1,6 @@

import 'should'
import {generate, parse, parser, stringify, transform} from '../lib/index.js'
import {generate, parse, stringify, transform} from '../lib/index.js'

describe('API Types', () => {

Expand All @@ -13,7 +13,7 @@ describe('API Types', () => {

it('parse', () => {
// With input + handler
parse('abc,def', (err: Error | undefined, records: Array<Array<string>>) => err || records)
parse('abc,def', {}, (err: Error | undefined, records: Array<Array<string>>) => err?.message || records)
})

it('stringify', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/stream-transform/package.json
Expand Up @@ -29,11 +29,11 @@
},
"exports": {
".": {
"import": "./lib/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
},
"./sync": {
"import": "./lib/sync.js",
"import": "./dist/esm/sync.js",
"require": "./dist/cjs/sync.cjs"
}
},
Expand Down

0 comments on commit b780fbd

Please sign in to comment.