From 3ffaf4165370aff66e6a84cb40855b4e579e6213 Mon Sep 17 00:00:00 2001 From: Matt Pocock Date: Sat, 8 Jun 2024 19:05:41 +0100 Subject: [PATCH 1/2] Fixed import of typescript/lib/tsserver --- packages/twoslash-cdn/src/index.ts | 2 +- packages/twoslash/test/new.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twoslash-cdn/src/index.ts b/packages/twoslash-cdn/src/index.ts index 4f41cd2..0120399 100644 --- a/packages/twoslash-cdn/src/index.ts +++ b/packages/twoslash-cdn/src/index.ts @@ -1,6 +1,6 @@ import type { TwoslashExecuteOptions, TwoslashFunction, TwoslashOptions, TwoslashReturn } from 'twoslash' import { createTwoslasher } from 'twoslash' -import * as ts from 'typescript/lib/tsserverlibrary' +import * as ts from 'typescript/lib/tsserverlibrary.js' import { createDefaultMapFromCDN } from '@typescript/vfs' import { setupTypeAcquisition } from '@typescript/ata' diff --git a/packages/twoslash/test/new.test.ts b/packages/twoslash/test/new.test.ts index a6a2e77..29dcd6a 100644 --- a/packages/twoslash/test/new.test.ts +++ b/packages/twoslash/test/new.test.ts @@ -1,5 +1,5 @@ import { expect, it } from 'vitest' -import * as ts from 'typescript/lib/tsserverlibrary' +import * as ts from 'typescript/lib/tsserverlibrary.js' import { splitFiles } from '../src/utils' import type { TwoslashReturn } from '../src/types' import { twoslasher } from '../src' From d193490c8cfcb5b79126c54d5a743aa8059d625f Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 9 Jun 2024 08:49:55 +0300 Subject: [PATCH 2/2] chore: update --- packages/twoslash-cdn/src/index.ts | 2 +- packages/twoslash/test/new.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twoslash-cdn/src/index.ts b/packages/twoslash-cdn/src/index.ts index 0120399..0412768 100644 --- a/packages/twoslash-cdn/src/index.ts +++ b/packages/twoslash-cdn/src/index.ts @@ -1,6 +1,6 @@ import type { TwoslashExecuteOptions, TwoslashFunction, TwoslashOptions, TwoslashReturn } from 'twoslash' import { createTwoslasher } from 'twoslash' -import * as ts from 'typescript/lib/tsserverlibrary.js' +import ts from 'typescript' import { createDefaultMapFromCDN } from '@typescript/vfs' import { setupTypeAcquisition } from '@typescript/ata' diff --git a/packages/twoslash/test/new.test.ts b/packages/twoslash/test/new.test.ts index 29dcd6a..3a677d3 100644 --- a/packages/twoslash/test/new.test.ts +++ b/packages/twoslash/test/new.test.ts @@ -1,5 +1,5 @@ import { expect, it } from 'vitest' -import * as ts from 'typescript/lib/tsserverlibrary.js' +import ts from 'typescript' import { splitFiles } from '../src/utils' import type { TwoslashReturn } from '../src/types' import { twoslasher } from '../src'