Skip to content

Commit

Permalink
fix: move getProjectRootNamesAndCompilerOptions to core and fix glob …
Browse files Browse the repository at this point in the history
…and minimatch usage error

#79
  • Loading branch information
plantain-00 committed Feb 17, 2021
1 parent 2db60ab commit 2ae2cbc
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -35,6 +35,6 @@
],
"private": true,
"typeCoverage": {
"atLeast": 98.91
"atLeast": 96.92
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Expand Up @@ -8,8 +8,8 @@
"author": "york yao <yaoao12306@outlook.com>",
"license": "MIT",
"dependencies": {
"glob": "7",
"minimatch": "3",
"ts-lib-utils": "^2.15.0",
"tslib": "1 || 2",
"tsutils": "3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/core.ts
@@ -1,7 +1,7 @@
import * as ts from 'typescript'
import * as path from 'path'
import minimatch from 'minimatch'
import { getProjectRootNamesAndCompilerOptions } from 'ts-lib-utils'
import minimatch = require('minimatch')
import { getProjectRootNamesAndCompilerOptions } from './tsconfig'

import {
FileContext,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/tsconfig.json
Expand Up @@ -4,6 +4,7 @@
"outDir": "../dist",
"module": "commonjs",
"esModuleInterop": false,
"target": "ES2018",
"declaration": true
},
"files": [
Expand Down
@@ -1,7 +1,7 @@
import * as ts from 'typescript'
import * as fs from 'fs'
import * as path from 'path'
import glob from 'glob'
import glob = require('glob')

/**
* @public
Expand Down
1 change: 0 additions & 1 deletion packages/utils/package.json
Expand Up @@ -9,7 +9,6 @@
"author": "york yao <yaoao12306@outlook.com>",
"license": "MIT",
"dependencies": {
"glob": "7",
"tslib": "1 || 2"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/index.ts
@@ -1,3 +1,2 @@
export * from './tsconfig'
export * from './language-service'
export * from './js-doc'

0 comments on commit 2ae2cbc

Please sign in to comment.