typescript-plugin-css-modules
Advanced tools
Comparing version 5.0.0-beta.0 to 5.0.0
import Processor from 'postcss/lib/processor'; | ||
import { CSSExports } from 'icss-utils'; | ||
import { RawSourceMap } from 'source-map-js'; | ||
import tsModule from 'typescript/lib/tsserverlibrary'; | ||
import type tsModule from 'typescript/lib/tsserverlibrary'; | ||
import { Options } from '../options'; | ||
@@ -6,0 +6,0 @@ import { Logger } from './logger'; |
@@ -1,2 +0,2 @@ | ||
import tsModule from 'typescript/lib/tsserverlibrary'; | ||
import type tsModule from 'typescript/lib/tsserverlibrary'; | ||
import { Options } from '../options'; | ||
@@ -3,0 +3,0 @@ import { Logger } from './logger'; |
@@ -1,2 +0,2 @@ | ||
import { server } from 'typescript/lib/tsserverlibrary'; | ||
import type tsModule from 'typescript/lib/tsserverlibrary'; | ||
export interface Logger { | ||
@@ -6,2 +6,2 @@ log: (message: string) => void; | ||
} | ||
export declare const createLogger: (info: server.PluginCreateInfo) => Logger; | ||
export declare const createLogger: (info: tsModule.server.PluginCreateInfo) => Logger; |
@@ -1,3 +0,3 @@ | ||
import { server } from 'typescript/lib/tsserverlibrary'; | ||
declare const init: server.PluginModuleFactory; | ||
import type tsModule from 'typescript/lib/tsserverlibrary'; | ||
declare const init: tsModule.server.PluginModuleFactory; | ||
export = init; |
@@ -23,3 +23,2 @@ "use strict"; | ||
var filterPlugins_1 = require("./helpers/filterPlugins"); | ||
var typescript_1 = require("typescript"); | ||
var getPostCssConfigPlugins = function (directory) { | ||
@@ -49,3 +48,3 @@ try { | ||
}); | ||
var languageService = (0, typescript_1.createLanguageService)(languageServiceHostProxy); | ||
var languageService = ts.createLanguageService(languageServiceHostProxy); | ||
// TypeScript plugins have a `cwd` of `/`, which causes issues with import resolution. | ||
@@ -106,6 +105,6 @@ process.chdir(directory); | ||
if (!info.languageServiceHost.getScriptKind) { | ||
return typescript_1.ScriptKind.Unknown; | ||
return ts.ScriptKind.Unknown; | ||
} | ||
if (isCSS(fileName)) { | ||
return typescript_1.ScriptKind.TS; | ||
return ts.ScriptKind.TS; | ||
} | ||
@@ -124,3 +123,3 @@ return info.languageServiceHost.getScriptKind(fileName); | ||
return { | ||
extension: typescript_1.Extension.Dts, | ||
extension: ts.Extension.Dts, | ||
isExternalLibraryImport: false, | ||
@@ -156,3 +155,3 @@ resolvedFileName: path_1.default.resolve(path_1.default.dirname(containingFile), moduleName), | ||
return { | ||
extension: typescript_1.Extension.Dts, | ||
extension: ts.Extension.Dts, | ||
isExternalLibraryImport: false, | ||
@@ -159,0 +158,0 @@ resolvedFileName: path_1.default.resolve(cssModulePath), |
/// <reference types="less" /> | ||
import { Options as SassOptions } from 'sass'; | ||
import tsModule from 'typescript/lib/tsserverlibrary'; | ||
import type tsModule from 'typescript/lib/tsserverlibrary'; | ||
import { DotenvConfigOptions } from 'dotenv'; | ||
@@ -5,0 +5,0 @@ import { CSSExports } from 'icss-utils'; |
{ | ||
"name": "typescript-plugin-css-modules", | ||
"version": "5.0.0-beta.0", | ||
"version": "5.0.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Brody McKee <mrmckeb@hotmail.com>", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
71086
892