Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Sep 13, 2021
1 parent 8017842 commit 016cbd5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/cache-group.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Cache = require('./cache');
import Cache from './cache';
declare const _default: {
new (): {
MODULE_ENTRY: Cache;
Expand Down
4 changes: 2 additions & 2 deletions lib/resolve-package-path.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Cache = require('./cache');
import CacheGroup = require('./cache-group');
import Cache from './cache';
import CacheGroup from './cache-group';
declare function resolvePackagePath(caches: CacheGroup, name?: string, dir?: string): string | null;
declare namespace resolvePackagePath {
var _findPackagePath: (realFilePathCache: Cache, name: string, dir: string) => string | null;
Expand Down
2 changes: 1 addition & 1 deletion src/cache-group.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Cache = require('./cache');
import Cache from './cache';

/*
* CacheGroup is used to both speed up and ensure consistency of hashForDep.
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const ALLOWED_ERROR_CODES = [
'MISSING_DEPENDENCY'
];

import CacheGroup = require('./cache-group');
import Cache = require('./cache');
import CacheGroup from './cache-group';
import Cache from './cache';
const getRealFilePath = customResolvePackagePath._getRealFilePath;
const getRealDirectoryPath = customResolvePackagePath._getRealDirectoryPath;
const __findUpPackagePath = customResolvePackagePath._findUpPackagePath;
Expand Down
10 changes: 5 additions & 5 deletions src/resolve-package-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// credit goes to https://github.com/davecombs
// extracted in part from: https://github.com/stefanpenner/hash-for-dep/blob/15b2ebcf22024ceb2eb7907f8c412ae40f87b15e/lib/resolve-package-path.js#L1
//
import fs = require('fs');
import path = require('path');
import pathRoot = require('path-root');
import fs from 'fs';
import path from 'path';
import pathRoot from 'path-root';

import Cache = require('./cache');
import CacheGroup = require('./cache-group');
import Cache from './cache';
import CacheGroup from './cache-group';
import rethrowUnlessCode from './rethrow-unless-code';

/*
Expand Down
2 changes: 0 additions & 2 deletions src/should-preserve-symlinks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

function includes(array: [string], entry: string) {
for (let i = 0; i < array.length; i++) {
if (array[i] === entry) {
Expand Down

0 comments on commit 016cbd5

Please sign in to comment.