Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 20, 2025
1 parent a908fc7 commit 0056b54
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion packages/engine-oniguruma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"prepublishOnly": "nr build"
},
"dependencies": {
"@shikijs/core": "workspace:*",
"@shikijs/types": "workspace:*",
"@shikijs/vscode-textmate": "catalog:"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/engine-oniguruma/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { LoadWasmOptions, RegexEngine } from '@shikijs/types'

import { warnDeprecated } from '@shikijs/core'
import { loadWasm, OnigScanner, OnigString } from './oniguruma'

export { loadWasm }
Expand Down Expand Up @@ -40,6 +39,5 @@ export async function createOnigurumaEngine(options?: LoadWasmOptions | null): P
* @deprecated Use `createOnigurumaEngine` instead.
*/
export async function createWasmOnigEngine(options?: LoadWasmOptions | null): Promise<RegexEngine> {
warnDeprecated('Use `createOnigurumaEngine` instead.')
return createOnigurumaEngine(options)
}
12 changes: 0 additions & 12 deletions packages/engine-oniguruma/src/oniguruma/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,3 @@ function _makeResponseNonStreamingLoader(data: Response): WebAssemblyInstantiato
return WebAssembly.instantiate(arrayBuffer, importObject)
}
}

// export function createOnigString(str: string) {
// return new OnigString(str)
// }

// export function createOnigScanner(patterns: string[]) {
// return new OnigScanner(patterns)
// }

// export function setDefaultDebugCall(_defaultDebugCall: boolean): void {
// defaultDebugCall = _defaultDebugCall
// }
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0056b54

Please sign in to comment.