зеркало из https://github.com/microsoft/rnx-kit.git
Fixes from PR feedback (#811)
* Move typescript to a dev dependency. * Use regex test method instead of match. * Change files * Change files
This commit is contained in:
Родитель
bd9f686513
Коммит
52adbb5f16
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "Move typescript to a dev dependency.",
|
||||||
|
"packageName": "@rnx-kit/golang",
|
||||||
|
"email": "afoxman@microsoft.com",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "Use regex test method instead of match.",
|
||||||
|
"packageName": "@rnx-kit/typescript-react-native-resolver",
|
||||||
|
"email": "afoxman@microsoft.com",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
|
@ -26,14 +26,14 @@
|
||||||
"find-up": "^5.0.0",
|
"find-up": "^5.0.0",
|
||||||
"got": "^11.8.2",
|
"got": "^11.8.2",
|
||||||
"hasha": "^5.2.2",
|
"hasha": "^5.2.2",
|
||||||
"typescript": "^4.0.0",
|
|
||||||
"workspace-tools": "^0.16.2"
|
"workspace-tools": "^0.16.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rnx-kit/eslint-config": "^0.0.1",
|
"@rnx-kit/eslint-config": "^0.0.1",
|
||||||
"@types/node": "^14.15.0",
|
"@types/node": "^14.15.0",
|
||||||
"eslint": "^8.0.0",
|
"eslint": "^8.0.0",
|
||||||
"prettier": "^2.0.0"
|
"prettier": "^2.0.0",
|
||||||
|
"typescript": "^4.0.0"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "@rnx-kit/eslint-config"
|
"extends": "@rnx-kit/eslint-config"
|
||||||
|
|
|
@ -130,8 +130,8 @@ export function resolveModuleName(
|
||||||
module = resolveFileModule(context, moduleRef, searchDir, extensions);
|
module = resolveFileModule(context, moduleRef, searchDir, extensions);
|
||||||
}
|
}
|
||||||
if (module) {
|
if (module) {
|
||||||
module.isExternalLibraryImport = !!module.resolvedFileName.match(
|
module.isExternalLibraryImport = /[/\\]node_modules[/\\]/.test(
|
||||||
/[/\\]node_modules[/\\]/
|
module.resolvedFileName
|
||||||
);
|
);
|
||||||
|
|
||||||
const { host, options } = context;
|
const { host, options } = context;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче