Skip to content

Commit

Permalink
feat: replace ts types with typesVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Oct 18, 2021
1 parent d188c9f commit acb41d5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
7 changes: 6 additions & 1 deletion packages/csv-generate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,10 @@
"test": "mocha 'test/**/*.{coffee,ts}'"
},
"type": "module",
"types": "./lib/index.d.ts"
"typesVersions": {
"*": {
".": ["dist/esm/index.d.ts"],
"sync": ["dist/esm/sync.d.ts"]
}
}
}
7 changes: 6 additions & 1 deletion packages/csv-parse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,10 @@
"test": "mocha 'test/**/*.{coffee,ts}'"
},
"type": "module",
"types": "./lib/index.d.ts"
"typesVersions": {
"*": {
".": ["dist/esm/index.d.ts"],
"sync": ["dist/esm/sync.d.ts"]
}
}
}
7 changes: 6 additions & 1 deletion packages/csv-stringify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,10 @@
"test": "mocha 'test/**/*.{coffee,ts}'"
},
"type": "module",
"types": "./lib/index.d.ts"
"typesVersions": {
"*": {
".": ["dist/esm/index.d.ts"],
"sync": ["dist/esm/sync.d.ts"]
}
}
}
7 changes: 6 additions & 1 deletion packages/csv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,10 @@
"test": "mocha 'test/**/*.{coffee,ts}'"
},
"type": "module",
"types": "./lib/index.d.ts"
"typesVersions": {
"*": {
".": ["dist/esm/index.d.ts"],
"sync": ["dist/esm/sync.d.ts"]
}
}
}
12 changes: 6 additions & 6 deletions packages/stream-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
"test": "mocha 'test/**/*.{coffee,ts}'"
},
"type": "module",
"types": [
"./dist/cjs/index.d.ts",
"./dist/cjs/sync.d.ts",
"./lib/index.d.ts",
"./lib/sync.d.ts"
]
"typesVersions": {
"*": {
".": ["dist/esm/index.d.ts"],
"sync": ["dist/esm/sync.d.ts"]
}
}
}

0 comments on commit acb41d5

Please sign in to comment.