Skip to content

Commit

Permalink
build(deps-dev): bump typescript from 5.0.0-dev.20221215 to 5.0.0-dev…
Browse files Browse the repository at this point in the history
….20230212

Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Feb 12, 2023
1 parent 6342c87 commit 60a57cf
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 36 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const config = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx,
impliedStrict: true
impliedStrict: true,
jsx
},
emitDecoratorMetadata: tsconfig.compilerOptions.emitDecoratorMetadata,
extraFileExtensions: [],
Expand Down Expand Up @@ -253,7 +253,7 @@ const config = {
allowShortCircuit: true,
allowTaggedTemplates: true,
allowTernary: true,
enforceForJSX: jsx
enforceForJSX: true
}
],
'@typescript-eslint/no-unused-vars': [
Expand Down Expand Up @@ -339,7 +339,7 @@ const config = {
1,
{
definedTags: ['experimental', 'next', 'visibleName'],
jsxTags: jsx
jsxTags: false
}
],
'jsdoc/check-types': [1, { unifyParentAndChildTypeChecks: true }],
Expand Down Expand Up @@ -1063,6 +1063,7 @@ const config = {
{
files: ['.eslintrc.*'],
rules: {
'@typescript-eslint/no-unsafe-member-access': 0,
'sort-keys': 0,
'unicorn/string-content': 0
}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ jobs:
- id: typescript
name: Install typescript@${{ matrix.typescript-version }}
run: yarn add -D typescript@${{ matrix.typescript-version }}
- id: set-typescript-version
name: Set env.TYPESCRIPT_VERSION
run: |
echo "TYPESCRIPT_VERSION=$(jq .devDependencies.typescript package.json -r)" >> $GITHUB_ENV
- id: debug
name: Print environment variables and event payload
uses: hmarr/debug-action@v2.1.0
- id: typecheck
name: Run typecheck
run: yarn typecheck
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/typescript-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ jobs:
- id: print-typescript-version
name: Print TypeScript version
run: echo $TYPESCRIPT_VERSION
- id: tsconfig
name: Prepare tsconfig.json
if: matrix.typescript-version == 'next'
run: echo $(jq '.compilerOptions += {"ignoreDeprecations":"5.0"}' -S $TSCONFIG) > $TSCONFIG
env:
TSCONFIG: tsconfig.json
- id: build
name: Build project
run: yarn build
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
},
"exclude": ["**/__mocks__/**", "**/__tests__/**"],
"extends": "../tsconfig",
"include": ["../dist", "../src"],
"include": ["../dist/*", "../src/*"],
"references": []
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"tempfile": "4.0.0",
"trash-cli": "5.0.0",
"ts-dedent": "2.2.0",
"typescript": "5.0.0-dev.20221215",
"typescript": "5.0.0-dev.20230212",
"version-bump-prompt": "6.1.0",
"vite": "4.1.1",
"vite-tsconfig-paths": "4.0.5",
Expand Down
3 changes: 0 additions & 3 deletions src/utils/__mocks__/load-tsconfig.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* @file Mock Utilities - loadTsconfig
* @module mlly/utils/mocks/loadTsconfig
* @see https://github.com/microsoft/TypeScript/issues/47663
*/

import type {} from '@flex-development/tutils/dist/types/nullable.mjs'

/**
* `loadTsconfig` module type.
*/
Expand Down
14 changes: 8 additions & 6 deletions src/utils/__snapshots__/load-tsconfig.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
exports[`unit:utils/loadTsconfig > should return TSConfig object if tsconfig file is found 1`] = `
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"allowJs": true,
"allowUnreachableCode": false,
"alwaysStrict": false,
Expand All @@ -15,14 +16,11 @@ exports[`unit:utils/loadTsconfig > should return TSConfig object if tsconfig fil
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"lib": [
"es2020",
],
"module": "esnext",
"moduleDetection": "force",
"moduleResolution": "node",
"moduleResolution": "bundler",
"newLine": "lf",
"noEmit": true,
"noEmitOnError": true,
Expand Down Expand Up @@ -53,7 +51,10 @@ exports[`unit:utils/loadTsconfig > should return TSConfig object if tsconfig fil
"preserveSymlinks": true,
"pretty": true,
"resolveJsonModule": true,
"resolvePackageJsonExports": true,
"resolvePackageJsonImports": true,
"rootDir": "..",
"skipDefaultLibCheck": false,
"skipLibCheck": false,
"sourceMap": true,
"strict": true,
Expand All @@ -62,15 +63,16 @@ exports[`unit:utils/loadTsconfig > should return TSConfig object if tsconfig fil
"target": "es2020",
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true,
"verbatimModuleSyntax": true,
},
"exclude": [
"**/__mocks__/**",
"**/__tests__/**",
],
"extends": "../tsconfig",
"include": [
"../dist",
"../src",
"../dist/*",
"../src/*",
],
"references": [],
}
Expand Down
3 changes: 3 additions & 0 deletions src/utils/__tests__/normalize-module-resolution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('unit:utils/normalizeModuleResolution', () => {
// @ts-ignore ts(2551)
['Bundler', ts.ModuleResolutionKind.Bundler],
['Classic', ts.ModuleResolutionKind.Classic],
// @ts-ignore ts(2551)
['Node', ts.ModuleResolutionKind.NodeJs],
// @ts-ignore ts(2551)
['Node10', ts.ModuleResolutionKind.Node10],
Expand All @@ -28,6 +29,7 @@ describe('unit:utils/normalizeModuleResolution', () => {
// @ts-ignore ts(2551)
[ModuleResolutionKind.Node10, ts.ModuleResolutionKind.Node10],
[ModuleResolutionKind.Node16, ts.ModuleResolutionKind.Node16],
// @ts-ignore ts(2551)
[ModuleResolutionKind.NodeJs, ts.ModuleResolutionKind.NodeJs],
[ModuleResolutionKind.NodeNext, ts.ModuleResolutionKind.NodeNext],
// @ts-ignore ts(2551)
Expand All @@ -36,6 +38,7 @@ describe('unit:utils/normalizeModuleResolution', () => {
// @ts-ignore ts(2551)
[ts.ModuleResolutionKind.Node10, ts.ModuleResolutionKind.Node10],
[ts.ModuleResolutionKind.Node16, ts.ModuleResolutionKind.Node16],
// @ts-ignore ts(2551)
[ts.ModuleResolutionKind.NodeJs, ts.ModuleResolutionKind.NodeJs],
[ts.ModuleResolutionKind.NodeNext, ts.ModuleResolutionKind.NodeNext]
]
Expand Down
2 changes: 1 addition & 1 deletion src/utils/normalize-module-resolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const normalizeModuleResolution = (
break
case ModuleResolutionKind.NodeJs:
case getPropertyValue(ts.ModuleResolutionKind, 'NodeJs'):
ret = getPropertyValue(ts.ModuleResolutionKind, 'NodeJs')
ret = getPropertyValue(ts.ModuleResolutionKind, 'NodeJs') as typeof ret
break
case ModuleResolutionKind.NodeNext:
case getPropertyValue(ts.ModuleResolutionKind, 'NodeNext'):
Expand Down
12 changes: 7 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"allowJs": true,
"allowUnreachableCode": false,
"alwaysStrict": false,
Expand All @@ -12,12 +13,9 @@
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"lib": ["dom", "dom.iterable", "es2020"],
"module": "esnext",
"moduleDetection": "force",
"moduleResolution": "node",
"moduleResolution": "bundler",
"newLine": "lf",
"noEmit": true,
"noErrorTruncation": true,
Expand All @@ -39,15 +37,19 @@
"preserveSymlinks": true,
"pretty": true,
"resolveJsonModule": true,
"resolvePackageJsonExports": true,
"resolvePackageJsonImports": true,
"rootDir": ".",
"skipDefaultLibCheck": false,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"target": "esnext",
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true
"useUnknownInCatchVariables": true,
"verbatimModuleSyntax": true
},
"exclude": ["**/coverage", "**/dist", "**/node_modules"],
"include": ["**/**.cjs", "**/**.mjs", "**/**.mts", "**/**.ts", "**/.*.cjs"]
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ __metadata:
tempfile: "npm:4.0.0"
trash-cli: "npm:5.0.0"
ts-dedent: "npm:2.2.0"
typescript: "npm:5.0.0-dev.20221215"
typescript: "npm:5.0.0-dev.20230212"
version-bump-prompt: "npm:6.1.0"
vite: "npm:4.1.1"
vite-tsconfig-paths: "npm:4.0.5"
Expand Down Expand Up @@ -8669,13 +8669,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:5.0.0-dev.20221215":
version: 5.0.0-dev.20221215
resolution: "typescript@npm:5.0.0-dev.20221215"
"typescript@npm:5.0.0-dev.20230212":
version: 5.0.0-dev.20230212
resolution: "typescript@npm:5.0.0-dev.20230212"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 55a65a8798fab4996ee5783b59ef6871c0d803dc2d6eff18336bd953a8dba825bd39fad3004fbcd94df532dae72d6319ce344ebfe6004a0d517d2c5fcd3cc44e
checksum: 2edc230dd799c8bbd7e2be765412f8cadcfc7db1eea4b12bea504d371b39c30f7d859b303fa9db52f80e682bb8b0c05a5e5351d3e3332a03dfae32affad0266a
languageName: node
linkType: hard

Expand All @@ -8689,13 +8689,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A5.0.0-dev.20221215#optional!builtin<compat/typescript>":
version: 5.0.0-dev.20221215
resolution: "typescript@patch:typescript@npm%3A5.0.0-dev.20221215#optional!builtin<compat/typescript>::version=5.0.0-dev.20221215&hash=ad5954"
"typescript@patch:typescript@npm%3A5.0.0-dev.20230212#optional!builtin<compat/typescript>":
version: 5.0.0-dev.20230212
resolution: "typescript@patch:typescript@npm%3A5.0.0-dev.20230212#optional!builtin<compat/typescript>::version=5.0.0-dev.20230212&hash=ad5954"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 27579cfcf9530503aa085c5f615fae194e126bb3c2008d164f24689d6a9295ab0d07b369be28a8ed6a4648b8190ec11edf919935209263347b3b61707ddd13f1
checksum: 304b15d2d384d9473c749e2125329b2fc9498e63e9b1fa6c4835f320b831e8cd610d9601656d768028d3537cfee25a481037d98829597345547b5c1f276141e1
languageName: node
linkType: hard

Expand Down

0 comments on commit 60a57cf

Please sign in to comment.