Socket
Socket
Sign inDemoInstall

@progress/kendo-schematics

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-schematics - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-dev.201906261331

2

package.json

@@ -6,3 +6,3 @@ {

"license": "SEE LICENSE in LICENSE.md",
"version": "1.0.0",
"version": "1.0.1-dev.201906261331",
"scripts": {

@@ -9,0 +9,0 @@ "build-package": "npm run build",

@@ -0,3 +1,3 @@

import { Rule } from '@angular-devkit/schematics';
import { Schema as RegisterSchema } from './schema';
import { Rule } from '@angular-devkit/schematics';
export declare function importTheme(options: RegisterSchema): Rule;

@@ -19,15 +19,15 @@ "use strict";

};
const supportedTargets = new Set(['build', 'test']);
return schematics_1.chain([
rules_1.addToPackageJson({ dependencies }),
(host, context) => {
(host) => {
const workspace = utils_1.getWorkspace(host);
const project = utils_1.getProjectFromWorkspace(workspace, options.project);
const targets = project.architect || project.targets;
if (targets) {
addStyleToTarget(targets['build'], host, themePath(name), workspace);
addStyleToTarget(targets['test'], host, themePath(name), workspace);
if (!targets) {
throw new schematics_1.SchematicsException(`${project.name} does not have defined targets.`);
}
else {
throw new schematics_1.SchematicsException(`${project.name} does not have an targets/architect configuration`);
}
Object.keys(targets).filter(key => supportedTargets.has(key)).forEach(key => {
addStyleToTarget(targets[key], host, themePath(name), workspace);
});
return host;

@@ -34,0 +34,0 @@ }

@@ -143,2 +143,5 @@ "use strict";

function createCliConfig(tree, options = {}) {
if (options.skipTests) {
delete config.projects.cli6.architect.test;
}
let content = __1.stringify(config);

@@ -145,0 +148,0 @@ if (options.useTargets) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc