Skip to content

Commit d961341

Browse files
author
Loïc Mangeonjean
committed
fix: fix build
1 parent 4301fdf commit d961341

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"test": "jest --runInBand",
1212
"test:watch": "jest --watch",
1313
"build": "npm run lint && npm run compile && npm run generate-types && npm run test",
14-
"compile": "node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.config.ts --configPlugin typescript",
14+
"compile": "node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.config.ts --configPlugin typescript --configImportAttributesKey with",
1515
"lint": "eslint '{src/**/*.ts,scripts/*.ts,rollup.config.ts}' && prettier --check '**/*.{js,ts}'",
16-
"generate-types": "tsc --project tsconfig.types.json && node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.types.config.ts --configPlugin typescript && rm -rf ./dist/types",
16+
"generate-types": "tsc --project tsconfig.types.json && node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.types.config.ts --configPlugin typescript --configImportAttributesKey with && rm -rf ./dist/types",
1717
"preprepare": "./scripts/install-extensions"
1818
},
1919
"repository": {

rollup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import nodePolyfills from 'rollup-plugin-polyfill-node'
99
import typescript from '@rollup/plugin-typescript'
1010
import path, { dirname } from 'path'
1111
import { fileURLToPath } from 'url'
12-
import pkg from './package.json' assert { type: 'json' }
12+
import pkg from './package.json' with { type: 'json' }
1313

1414
const __filename = fileURLToPath(import.meta.url)
1515
const __dirname = dirname(__filename)

rollup.types.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as rollup from 'rollup'
22
import dts from 'rollup-plugin-dts'
3-
import pkg from './package.json' assert { type: 'json' }
3+
import pkg from './package.json' with { type: 'json' }
44
import removeVscodeDeclareModule from './rollup/rollup-plugin-remove-vscode-declare-module'
55

66
const externals = [...Object.keys(pkg.dependencies)]

src/extensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class InfrastructureFileSystemUpdaterProvider
143143
throw FileSystemProviderError.create('Not allowed', FileSystemProviderErrorCode.NoPermissions)
144144
}
145145

146-
async writeFile(resource: URI, content: Uint8Array): Promise<void> {
146+
async writeFile(resource: URI, content: Uint8Array<ArrayBuffer>): Promise<void> {
147147
await this.infrastructure.writeFile!(
148148
resource,
149149
await bufferToBase64(content),

0 commit comments

Comments
 (0)