Skip to content

Commit

Permalink
fix: generate rollup plugin types
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Apr 22, 2023
1 parent 58a0acb commit 0b422c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions rollup/rollup.types.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default rollup.defineConfig([
'./dist/types/src/service-override/audioCue.d.ts',
'./dist/types/src/service-override/debug.d.ts',
'./dist/types/src/service-override/preferences.d.ts',
'./dist/types/src/monaco.d.ts'
'./dist/types/src/monaco.d.ts',
'./dist/types/src/rollup-vsix-plugin.d.ts'
].map((input): rollup.RollupOptions => ({
input,
output: {
Expand All @@ -44,7 +45,7 @@ export default rollup.defineConfig([
entryFileNames: chunk => `${chunk.name}.ts`
},
external: function isExternal (id) {
return ['vscode', 'monaco-editor', 'vscode-textmate'].includes(id)
return ['vscode', 'monaco-editor', 'vscode-textmate', 'rollup', '@rollup/pluginutils'].includes(id)
},
plugins: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/rollup-vsix-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createFilter, FilterPattern, dataToEsm } from '@rollup/pluginutils'
import { Plugin } from 'rollup'
import yauzl from 'yauzl'
import * as yauzl from 'yauzl'
import { Readable } from 'stream'
import * as path from 'path'
import { extractPathsFromExtensionManifest } from './extension-tools'
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"src/service-override/audioCue.ts",
"src/service-override/debug.ts",
"src/service-override/preferences.ts",
"src/monaco.ts"
"src/monaco.ts",
"src/rollup-vsix-plugin.ts"
]
}

0 comments on commit 0b422c1

Please sign in to comment.