Skip to content

Commit

Permalink
Drop support for TS 4.6 and earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Oct 28, 2023
1 parent b2a85ee commit 7bb4dc6
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 212 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
node: ['16.x']
ts: ['4.2', '4.3', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5.0']
ts: ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2']
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand Down
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"default": "./dist/cjs/reselect.cjs"
}
},
"typesVersions": {
"<=4.6": {
"*": [
"./dist/versionedTypes/ts46/index.d.ts"
]
}
},
"files": [
"src",
"dist"
Expand Down
14 changes: 0 additions & 14 deletions src/versionedTypes/package.dist.json

This file was deleted.

171 changes: 0 additions & 171 deletions src/versionedTypes/ts46-mergeParameters.ts

This file was deleted.

1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"paths": {
"reselect": ["src/index.ts"], // @remap-prod-remove-line
"@internal/*": ["src/*"],
"./ts47-mergeParameters": ["./src/versionedTypes/ts46-mergeParameters.ts"]
}
},
"include": ["./src/**/*"],
Expand Down
6 changes: 0 additions & 6 deletions tsconfig.ts46types.json

This file was deleted.

13 changes: 1 addition & 12 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,7 @@ export default defineConfig(options => {
format: ['esm'],
outExtension: () => ({ js: '.mjs' }),
dts: true,
clean: true,
async onSuccess() {
console.log('onSuccess')

console.log('Generating TS 4.6 types...')
await execAsync('yarn tsc -p tsconfig.ts46types.json')
fs.copyFileSync(
'src/versionedTypes/package.dist.json',
'dist/versionedTypes/ts46/versionedTypes/package.json'
)
console.log('TS 4.6 types done')
}
clean: true
},

// Support Webpack 4 by pointing `"module"` to a file with a `.js` extension
Expand Down

0 comments on commit 7bb4dc6

Please sign in to comment.