Skip to content

Commit 7b589a7

Browse files
authored
Merge pull request #60 from CodinGame/update-dev-dependencies
Update dev dependencies
2 parents f07c3ee + a42e0f4 commit 7b589a7

7 files changed

Lines changed: 1839 additions & 1364 deletions

File tree

package-lock.json

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

package.json

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -141,37 +141,37 @@
141141
}
142142
},
143143
"devDependencies": {
144-
"@babel/core": "^7.18.10",
144+
"@babel/core": "^7.20.12",
145145
"@babel/plugin-proposal-class-properties": "^7.18.6",
146-
"@babel/plugin-proposal-decorators": "^7.18.10",
147-
"@babel/preset-env": "^7.18.10",
146+
"@babel/plugin-proposal-decorators": "^7.20.7",
147+
"@babel/preset-env": "^7.20.2",
148148
"@babel/preset-typescript": "^7.18.6",
149149
"@codingame/eslint-config": "^1.1.6",
150-
"@codingame/tsconfig": "^1.1.0",
151-
"@octokit/rest": "^19.0.4",
152-
"@rollup/plugin-node-resolve": "^13.3.0",
153-
"@rollup/plugin-replace": "^4.0.0",
154-
"@rollup/plugin-typescript": "^8.3.4",
155-
"@types/babel__core": "^7.1.19",
156-
"@types/semver": "^7.3.12",
150+
"@codingame/tsconfig": "^1.1.1",
151+
"@octokit/rest": "^19.0.5",
152+
"@rollup/plugin-node-resolve": "^15.0.1",
153+
"@rollup/plugin-replace": "^5.0.2",
154+
"@rollup/plugin-typescript": "^11.0.0",
155+
"@types/babel__core": "^7.20.0",
156+
"@types/semver": "^7.3.13",
157157
"@types/vscode": "~1.69.1",
158-
"@typescript-eslint/eslint-plugin": "^5.33.1",
159-
"@typescript-eslint/parser": "^5.33.1",
160-
"eslint": "^8.22.0",
158+
"@typescript-eslint/eslint-plugin": "^5.48.2",
159+
"@typescript-eslint/parser": "^5.48.2",
160+
"eslint": "^8.32.0",
161161
"eslint-config-standard": "^17.0.0",
162-
"eslint-plugin-import": "^2.26.0",
163-
"eslint-plugin-n": "^15.2.4",
164-
"eslint-plugin-promise": "^6.0.0",
162+
"eslint-plugin-import": "^2.27.5",
163+
"eslint-plugin-n": "^15.6.1",
164+
"eslint-plugin-promise": "^6.1.1",
165165
"eslint-plugin-unused-imports": "^2.0.0",
166166
"js-cleanup": "^1.2.0",
167-
"recast": "^0.21.2",
168-
"rollup": "^2.78.1",
169-
"rollup-plugin-dts": "^4.2.2",
167+
"recast": "^0.22.0",
168+
"rollup": "^3.10.0",
169+
"rollup-plugin-dts": "^5.1.1",
170170
"rollup-plugin-styles": "^4.0.0",
171-
"semver": "^7.3.7",
171+
"semver": "^7.3.8",
172172
"ts-node": "^10.9.1",
173-
"typescript": "^4.7.4",
174-
"zx": "^7.0.8"
173+
"typescript": "^4.9.4",
174+
"zx": "^7.1.1"
175175
},
176176
"dependencies": {
177177
},
@@ -180,6 +180,11 @@
180180
"vscode-textmate": "^7.0.1",
181181
"vscode-oniguruma": "^1.6.2"
182182
},
183+
"overrides": {
184+
"rollup-plugin-styles": {
185+
"rollup": "3.10.0"
186+
}
187+
},
183188
"volta": {
184189
"node": "16.15.0",
185190
"npm": "8.11.0"

rollup/rollup.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ import cleanup from 'js-cleanup'
88
import ts from 'typescript'
99
import replace from '@rollup/plugin-replace'
1010
import styles from 'rollup-plugin-styles'
11+
import * as tslib from 'tslib'
12+
import * as babylonParser from 'recast/parsers/babylon.js'
1113
import * as fs from 'fs'
1214
import * as path from 'path'
1315
import * as vm from 'vm'
14-
import pkg from '../package.json'
16+
import { fileURLToPath } from 'url'
17+
import pkg from '../package.json' assert { type: 'json' }
18+
19+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1520

1621
const PURE_ANNO = '#__PURE__'
1722
const PURE_FUNCTIONS = new Set([
@@ -216,7 +221,7 @@ export default (args: Record<string, string>): rollup.RollupOptions[] => {
216221
transform (code, id) {
217222
if (id.startsWith(VSCODE_DIR)) {
218223
const ast = recast.parse(code, {
219-
parser: require('recast/parsers/babylon')
224+
parser: babylonParser
220225
})
221226
let transformed: boolean = false
222227
function addComment (node: recast.types.namedTypes.NewExpression | recast.types.namedTypes.CallExpression) {
@@ -330,7 +335,7 @@ export default (args: Record<string, string>): rollup.RollupOptions[] => {
330335
name: 'improve-treeshaking',
331336
transform (code) {
332337
const ast = recast.parse(code, {
333-
parser: require('recast/parsers/babylon')
338+
parser: babylonParser
334339
})
335340
let transformed: boolean = false
336341
function addComment (node: recast.types.namedTypes.NewExpression | recast.types.namedTypes.CallExpression) {
@@ -472,7 +477,7 @@ function customRequire<T extends Record<string, unknown>> (_path: string, rootPa
472477
vm.runInNewContext(transformedCode, {
473478
require: (_path: string) => {
474479
if (_path === 'tslib') {
475-
return require('tslib')
480+
return tslib
476481
}
477482
if (_path.endsWith('.css') || _path.includes('!')) {
478483
return null

rollup/rollup.types.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import * as rollup from 'rollup'
22
import dts from 'rollup-plugin-dts'
33
import * as path from 'path'
4+
import { fileURLToPath } from 'url'
5+
6+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
47

58
const VSCODE_DIR = path.join(__dirname, '../vscode')
69

scripts/install-vscode

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rm -rf vs/code
2626
rm -rf vs/server
2727

2828
echo "Building vscode..."
29-
tsc --declaration --importHelpers --module es2020 --preserveConstEnums --outDir "$output_directory/vs"
29+
npx tsc --declaration --importHelpers --module es2020 --preserveConstEnums --outDir "$output_directory/vs"
3030
# Copy files that are already built
3131
find ./vs \( -name '*.js' -o -name '*.d.ts' -o -name '*.css' \) -exec rsync -R \{\} "$output_directory/" \;
3232

scripts/vscode.patch

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,6 @@ index e3f41e0d416..14885bf3197 100644
1111

1212
public static validateOptions(options: IEditorOptions): ValidatedEditorOptions {
1313
const result = new ValidatedEditorOptions();
14-
diff --git a/src/vs/workbench/contrib/mergeEditor/browser/utils.ts b/src/vs/workbench/contrib/mergeEditor/browser/utils.ts
15-
index 7e92f970387..51e2439a52b 100644
16-
--- a/src/vs/workbench/contrib/mergeEditor/browser/utils.ts
17-
+++ b/src/vs/workbench/contrib/mergeEditor/browser/utils.ts
18-
@@ -151,7 +151,7 @@ export function deepMerge<T extends {}>(source1: T, source2: Partial<T>): T {
19-
for (const key in source2) {
20-
const source2Value = source2[key];
21-
if (typeof result[key] === 'object' && source2Value && typeof source2Value === 'object') {
22-
- result[key] = deepMerge<any>(result[key], source2Value);
23-
+ result[key] = deepMerge<any>(result[key], source2Value!);
24-
} else {
25-
result[key] = source2Value as any;
26-
}
27-
diff --git a/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts b/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts
28-
index a82ae60c449..143a208b867 100644
29-
--- a/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts
30-
+++ b/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts
31-
@@ -246,7 +246,7 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
32-
33-
// this is a copy of what the merged environment collection is on the remote side
34-
const env = await this._resolveEnvironment(backend, variableResolver, shellLaunchConfig);
35-
- const shouldPersist = ((this._configurationService.getValue(TaskSettingId.Reconnection) && shellLaunchConfig.reconnectionOwner) || !shellLaunchConfig.isFeatureTerminal) && this._configHelper.config.enablePersistentSessions && !shellLaunchConfig.isTransient;
36-
+ const shouldPersist = ((this._configurationService.getValue<boolean>(TaskSettingId.Reconnection) && shellLaunchConfig.reconnectionOwner !== undefined) || !shellLaunchConfig.isFeatureTerminal) && this._configHelper.config.enablePersistentSessions && !shellLaunchConfig.isTransient;
37-
if (shellLaunchConfig.attachPersistentProcess) {
38-
const result = await backend.attachToProcess(shellLaunchConfig.attachPersistentProcess.id);
39-
if (result) {
40-
@@ -460,7 +460,7 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
41-
windowsEnableConpty: this._configHelper.config.windowsEnableConpty && !isScreenReaderModeEnabled,
42-
environmentVariableCollections: this._extEnvironmentVariableCollection ? serializeEnvironmentVariableCollections(this._extEnvironmentVariableCollection.collections) : undefined
43-
};
44-
- const shouldPersist = ((this._configurationService.getValue(TaskSettingId.Reconnection) && shellLaunchConfig.reconnectionOwner) || !shellLaunchConfig.isFeatureTerminal) && this._configHelper.config.enablePersistentSessions && !shellLaunchConfig.isTransient;
45-
+ const shouldPersist = ((this._configurationService.getValue<boolean>(TaskSettingId.Reconnection) && shellLaunchConfig.reconnectionOwner !== undefined) || !shellLaunchConfig.isFeatureTerminal) && this._configHelper.config.enablePersistentSessions && !shellLaunchConfig.isTransient;
46-
return await backend.createProcess(shellLaunchConfig, initialCwd, cols, rows, this._configHelper.config.unicodeVersion, env, options, shouldPersist);
47-
}
48-
4914
diff --git a/src/vs/workbench/services/configuration/browser/configurationService.ts b/src/vs/workbench/services/configuration/browser/configurationService.ts
5015
index a1245856684..55bb8224f51 100644
5116
--- a/src/vs/workbench/services/configuration/browser/configurationService.ts

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"experimentalDecorators": true,
66
"resolveJsonModule": true,
77
"target": "es2020",
8-
"module": "es2020",
8+
"module": "esnext",
99
"lib": [
1010
"es2021",
1111
"DOM"

0 commit comments

Comments
 (0)