Skip to content

Commit 4f7a24d

Browse files
Update devDependencies typescript from v5.9.3 to v6 (#384)
* Update devDependencies typescript from v5.9.3 to v6 * Change moduleResolution from 'node' to 'bundler' --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dan Adajian <dadajian@expediagroup.com>
1 parent 1cad012 commit 4f7a24d

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"husky": "9.1.7",
3535
"prettier": "3.8.1",
3636
"type-fest": "5.5.0",
37-
"typescript": "5.9.3",
37+
"typescript": "6.0.2",
3838
"typescript-eslint": "8.58.0"
3939
}
4040
}

test/rules/resolutions.test.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('resolutions', () => {
6060
});
6161

6262
it('should fail when non-matching resolution is present in package.json and ignore list', () => {
63-
getMultilineInputMock.mockImplementationOnce(input =>
63+
getMultilineInputMock.mockImplementationOnce((input: string) =>
6464
input === 'ignore-resolutions' ? ['@test/package-foo', '@test/package-bar'] : []
6565
);
6666

@@ -81,7 +81,7 @@ describe('resolutions', () => {
8181
});
8282

8383
it('should not fail when resolutions are not present, but ignore list is', () => {
84-
getMultilineInputMock.mockImplementationOnce(input =>
84+
getMultilineInputMock.mockImplementationOnce((input: string) =>
8585
input === 'ignore-resolutions' ? ['@test/package'] : []
8686
);
8787

@@ -96,7 +96,7 @@ describe('resolutions', () => {
9696
describe('ignore-resolutions-until', () => {
9797
it('should not fail when some resolutions are provided and ignore-resolutions-until is set with date in the future', () => {
9898
setSystemTime(new Date('2020-12-31'));
99-
getInputMock.mockImplementation(input =>
99+
getInputMock.mockImplementation((input: string) =>
100100
input === 'ignore-resolutions-until' ? '2021-01-01' : ''
101101
);
102102

@@ -118,7 +118,7 @@ describe('resolutions', () => {
118118

119119
it('should fail when some resolutions are provided and ignore-resolutions-until is set with date in the past', () => {
120120
setSystemTime(new Date('2021-01-31'));
121-
getInputMock.mockImplementation(input =>
121+
getInputMock.mockImplementation((input: string) =>
122122
input === 'ignore-resolutions-until' ? '2021-01-01' : ''
123123
);
124124

@@ -142,7 +142,9 @@ describe('resolutions', () => {
142142

143143
it('should fail when some resolutions are provided and ignore-resolutions-until is not set', () => {
144144
setSystemTime(new Date('2021-01-31'));
145-
getInputMock.mockImplementation(input => (input === 'ignore-resolutions-until' ? '' : ''));
145+
getInputMock.mockImplementation((input: string) =>
146+
input === 'ignore-resolutions-until' ? '' : ''
147+
);
146148

147149
const packageJson: PackageJson = {
148150
dependencies: {},
@@ -164,10 +166,10 @@ describe('resolutions', () => {
164166

165167
it('should not fail when matching resolution is present in package.json and ignore list, while ignore-resolutions-until is provided with date in the past', () => {
166168
setSystemTime(new Date('2021-01-31'));
167-
getInputMock.mockImplementation(input =>
169+
getInputMock.mockImplementation((input: string) =>
168170
input === 'ignore-resolutions-until' ? '2021-01-01' : ''
169171
);
170-
getMultilineInputMock.mockImplementationOnce(input =>
172+
getMultilineInputMock.mockImplementationOnce((input: string) =>
171173
input === 'ignore-resolutions' ? ['@test/package-foo', '@test/package-bar'] : []
172174
);
173175

test/utils/get-dependencies.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('getDependencies', () => {
3838
};
3939

4040
it('should return expected result', () => {
41-
getMultilineInputMock.mockImplementation(input =>
41+
getMultilineInputMock.mockImplementation((input: string) =>
4242
input === 'dependency-types' ? ['dependencies'] : []
4343
);
4444
result = getDependencies(packageJson);
@@ -62,7 +62,7 @@ describe('getDependencies', () => {
6262
};
6363

6464
it('should return expected result', () => {
65-
getMultilineInputMock.mockImplementation(input =>
65+
getMultilineInputMock.mockImplementation((input: string) =>
6666
input === 'dependency-types' ? ['dependencies', 'devDependencies'] : []
6767
);
6868
result = getDependencies(packageJson);
@@ -102,7 +102,7 @@ describe('getDependencies', () => {
102102
};
103103

104104
it('should return expected result', () => {
105-
getMultilineInputMock.mockImplementation(input =>
105+
getMultilineInputMock.mockImplementation((input: string) =>
106106
input === 'dependency-types'
107107
? ['dependencies', 'devDependencies']
108108
: ['some-package-to-ignore']

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
44
"moduleDetection": "force",
5-
"moduleResolution": "node",
5+
"moduleResolution": "bundler",
66
"module": "esnext",
77
"target": "esnext",
88
"noEmit": true,
99
"noImplicitAny": true,
1010
"noUncheckedIndexedAccess": true,
1111
"resolveJsonModule": true,
1212
"skipLibCheck": true,
13-
"strict": true
13+
"strict": true,
14+
"types": ["bun"]
1415
},
1516
"exclude": ["dist"]
1617
}

0 commit comments

Comments
 (0)