Skip to content

Commit 895431d

Browse files
authored
deps: use normalizePath from @rollup/pluginutils (ezolenko#320)
- this was introduced in v4.1.0 of @rollup/pluginutils: https://github.com/rollup/plugins/blob/master/packages/pluginutils/CHANGELOG.md#v410 - this is the same as the code in `normalize.ts` but it uses constants from Node and is used by multiple Rollup plugins, so just helps with standardization - also less code and types to ship in the bundle! - removed the dist files for `normalize` as well, but didn't do a build in this commit as those are usually done in separate commits
1 parent 462442d commit 895431d

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

dist/normalize.d.ts

-2
This file was deleted.

dist/normalize.d.ts.map

-1
This file was deleted.

src/host.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tsModule } from "./tsproxy";
22
import * as tsTypes from "typescript";
33
import * as _ from "lodash";
4-
import { normalize } from "./normalize";
4+
import { normalizePath as normalize } from "@rollup/pluginutils";
55
import { TransformerFactoryCreator } from "./ioptions";
66

77
export class LanguageServiceHost implements tsTypes.LanguageServiceHost

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { printDiagnostics } from "./print-diagnostics";
1313
import { TSLIB, TSLIB_VIRTUAL, tslibSource, tslibVersion } from "./tslib";
1414
import { blue, red, yellow, green } from "colors/safe";
1515
import { relative, dirname, normalize as pathNormalize, resolve as pathResolve } from "path";
16-
import { normalize } from "./normalize";
16+
import { normalizePath as normalize } from "@rollup/pluginutils";
1717
import findCacheDir from "find-cache-dir";
1818

1919
import { PluginImpl, PluginContext, InputOptions, OutputOptions, TransformResult, SourceMap, Plugin } from "rollup";

src/normalize.ts

-4
This file was deleted.

0 commit comments

Comments
 (0)