diff --git a/packages/tailwindcss-language-server/package.json b/packages/tailwindcss-language-server/package.json index 6eaf40f..8ff4e78 100644 --- a/packages/tailwindcss-language-server/package.json +++ b/packages/tailwindcss-language-server/package.json @@ -70,7 +70,7 @@ "rimraf": "3.0.2", "stack-trace": "0.0.10", "tailwindcss": "3.3.0", - "tailwindcss-language-service": "*", + "@tailwindcss/language-service": "*", "typescript": "4.6.4", "vitest": "0.34.2", "vscode-css-languageservice": "6.2.9", diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts index b1b0c43..2c40e77 100644 --- a/packages/tailwindcss-language-server/src/server.ts +++ b/packages/tailwindcss-language-server/src/server.ts @@ -46,45 +46,45 @@ import resolveFrom, { setPnpApi } from './util/resolveFrom' import { AtRule, Container, Node, Result } from 'postcss' import Module from 'module' import Hook from './lib/hook' -import * as semver from 'tailwindcss-language-service/src/util/semver' +import * as semver from '@tailwindcss/language-service/src/util/semver' import dlv from 'dlv' import { dset } from 'dset' import pkgUp from 'pkg-up' import stackTrace from 'stack-trace' import extractClassNames from './lib/extractClassNames' import { klona } from 'klona/full' -import { doHover } from 'tailwindcss-language-service/src/hoverProvider' +import { doHover } from '@tailwindcss/language-service/src/hoverProvider' import { doComplete, resolveCompletionItem, -} from 'tailwindcss-language-service/src/completionProvider' +} from '@tailwindcss/language-service/src/completionProvider' import { State, FeatureFlags, Settings, ClassNames, Variant, -} from 'tailwindcss-language-service/src/util/state' +} from '@tailwindcss/language-service/src/util/state' import { provideDiagnostics } from './lsp/diagnosticsProvider' -import { doCodeActions } from 'tailwindcss-language-service/src/codeActions/codeActionProvider' -import { getDocumentColors } from 'tailwindcss-language-service/src/documentColorProvider' -import { getDocumentLinks } from 'tailwindcss-language-service/src/documentLinksProvider' +import { doCodeActions } from '@tailwindcss/language-service/src/codeActions/codeActionProvider' +import { getDocumentColors } from '@tailwindcss/language-service/src/documentColorProvider' +import { getDocumentLinks } from '@tailwindcss/language-service/src/documentLinksProvider' import { debounce } from 'debounce' import { getModuleDependencies } from './util/getModuleDependencies' import assert from 'assert' // import postcssLoadConfig from 'postcss-load-config' import * as parcel from './watcher/index.js' -import { bigSign } from 'tailwindcss-language-service/src/util/jit' -import { getColor } from 'tailwindcss-language-service/src/util/color' +import { bigSign } from '@tailwindcss/language-service/src/util/jit' +import { getColor } from '@tailwindcss/language-service/src/util/color' import * as culori from 'culori' import namedColors from 'color-name' import tailwindPlugins from './lib/plugins' import isExcluded from './util/isExcluded' import { getFileFsPath, normalizeFileNameToFsPath } from './util/uri' -import { equal } from 'tailwindcss-language-service/src/util/array' +import { equal } from '@tailwindcss/language-service/src/util/array' import preflight from 'tailwindcss/lib/css/preflight.css' import merge from 'deepmerge' -import { getTextWithoutComments } from 'tailwindcss-language-service/src/util/doc' +import { getTextWithoutComments } from '@tailwindcss/language-service/src/util/doc' import { CONFIG_GLOB, CSS_GLOB, PACKAGE_LOCK_GLOB } from './lib/constants' // @ts-ignore diff --git a/packages/tailwindcss-language-server/tsconfig.json b/packages/tailwindcss-language-server/tsconfig.json index bbf2dc8..f8858fb 100755 --- a/packages/tailwindcss-language-server/tsconfig.json +++ b/packages/tailwindcss-language-server/tsconfig.json @@ -11,7 +11,7 @@ "resolveJsonModule": true, "baseUrl": "..", "paths": { - "tailwindcss-language-service/*": ["../packages/tailwindcss-language-service/*"] + "@tailwindcss/language-service/*": ["../packages/tailwindcss-language-service/*"] } }, "include": ["src", "../packages/tailwindcss-language-service", "../../types"] diff --git a/packages/tailwindcss-language-service/package.json b/packages/tailwindcss-language-service/package.json index 1916866..0c23b0c 100644 --- a/packages/tailwindcss-language-service/package.json +++ b/packages/tailwindcss-language-service/package.json @@ -1,5 +1,5 @@ { - "name": "tailwindcss-language-service", + "name": "@tailwindcss/language-service", "version": "0.0.29", "main": "dist/index.js", "typings": "dist/index.d.ts",