@angular-eslint/schematics
Advanced tools
Comparing version 0.0.1-alpha.29 to 0.0.1-alpha.30
@@ -14,2 +14,5 @@ "use strict"; | ||
json.devDependencies = json.devDependencies || {}; | ||
/** | ||
* @angular-eslint packages | ||
*/ | ||
json.devDependencies['@angular-eslint/builder'] = packageJSON.version; | ||
@@ -19,4 +22,19 @@ json.devDependencies['@angular-eslint/eslint-plugin'] = packageJSON.version; | ||
packageJSON.version; | ||
/** | ||
* It seems `ng add` will automatically add the @angular-eslint/schematics package to the | ||
* dependencies section, so move it to devDependencies at this point | ||
*/ | ||
if (json.dependencies && json.dependencies['@angular-eslint/schematics']) { | ||
json.devDependencies['@angular-eslint/schematics'] = | ||
json.dependencies['@angular-eslint/schematics']; | ||
delete json.dependencies['@angular-eslint/schematics']; | ||
} | ||
json.devDependencies['@angular-eslint/template-parser'] = | ||
packageJSON.version; | ||
/** | ||
* @typescript-eslint packages | ||
*/ | ||
const typescriptESLintVersion = packageJSON.devDependencies['@typescript-eslint/experimental-utils']; | ||
json.devDependencies['@typescript-eslint/eslint-plugin'] = typescriptESLintVersion; | ||
json.devDependencies['@typescript-eslint/parser'] = typescriptESLintVersion; | ||
host.overwrite('package.json', JSON.stringify(json, null, 2)); | ||
@@ -23,0 +41,0 @@ context.addTask(new tasks_1.NodePackageInstallTask()); |
{ | ||
"name": "@angular-eslint/schematics", | ||
"version": "0.0.1-alpha.29", | ||
"version": "0.0.1-alpha.30", | ||
"description": "Angular Schematics for angular-eslint", | ||
@@ -26,3 +26,4 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@angular-devkit/schematics": "^9.0.7" | ||
"@angular-devkit/schematics": "^9.0.7", | ||
"@typescript-eslint/experimental-utils": "2.31.0" | ||
}, | ||
@@ -32,3 +33,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "c685f64bc8eda992bf90db2418b835a14e0de808" | ||
"gitHead": "03d1841f493b7322b4dc50703df02eff2e9dbfbb" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4732
66
2