@progress/kendo-schematics
Advanced tools
Comparing version 1.2.1 to 1.2.2-dev.202111261638
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE in LICENSE.md", | ||
"version": "1.2.1", | ||
"version": "1.2.2-dev.202111261638", | ||
"scripts": { | ||
@@ -9,0 +9,0 @@ "build-package": "npm run build", |
@@ -8,2 +8,3 @@ "use strict"; | ||
const utils_1 = require("../utils"); | ||
const theming_1 = require("./theming"); | ||
const collectionPath = path.join(__dirname, '../../collection.json'); | ||
@@ -89,3 +90,3 @@ const fileContent = (tree, path) => tree.get(path).content.toString(); | ||
dependencies: { | ||
'@progress/kendo-theme-material': 'latest' | ||
'@progress/kendo-theme-material': theming_1.themeVersion | ||
} | ||
@@ -108,3 +109,3 @@ }); | ||
const json = JSON.parse(fileContent(tree, 'package.json')).dependencies; | ||
expect(json['@progress/kendo-theme-material']).toBe('latest'); | ||
expect(json['@progress/kendo-theme-material']).toBe(theming_1.themeVersion); | ||
expect(json['@progress/kendo-dependency']).toBe('^1.0.0'); | ||
@@ -169,3 +170,3 @@ expect(json['hammerjs']).toBe(undefined); | ||
const json = JSON.parse(fileContent(tree, 'package.json')).dependencies; | ||
expect(json['@progress/kendo-theme-material']).toBe('latest'); | ||
expect(json['@progress/kendo-theme-material']).toBe(theming_1.themeVersion); | ||
expect(json['@progress/kendo-dependency']).toBe('^1.0.0'); | ||
@@ -172,0 +173,0 @@ expect(json['hammerjs']).toBe('^2.0.0'); |
@@ -9,2 +9,3 @@ import { Tree } from '@angular-devkit/schematics'; | ||
import { getWorkspace, getProjectFromWorkspace, stringify } from '../utils'; | ||
import { themeVersion } from './theming'; | ||
@@ -134,3 +135,3 @@ const collectionPath = path.join(__dirname, '../../collection.json'); | ||
dependencies: { | ||
'@progress/kendo-theme-material': 'latest' | ||
'@progress/kendo-theme-material': themeVersion | ||
} | ||
@@ -162,3 +163,3 @@ }); | ||
expect(json['@progress/kendo-theme-material']).toBe('latest'); | ||
expect(json['@progress/kendo-theme-material']).toBe(themeVersion); | ||
expect(json['@progress/kendo-dependency']).toBe('^1.0.0'); | ||
@@ -259,3 +260,3 @@ expect(json['hammerjs']).toBe(undefined); | ||
expect(json['@progress/kendo-theme-material']).toBe('latest'); | ||
expect(json['@progress/kendo-theme-material']).toBe(themeVersion); | ||
expect(json['@progress/kendo-dependency']).toBe('^1.0.0'); | ||
@@ -262,0 +263,0 @@ expect(json['hammerjs']).toBe('^2.0.0'); |
import { Rule } from '@angular-devkit/schematics'; | ||
import { Schema as RegisterSchema } from './schema'; | ||
export declare const themeVersion = "^4.42.0"; | ||
export declare function importTheme(options: RegisterSchema): Rule; |
@@ -12,2 +12,3 @@ "use strict"; | ||
const themePath = (name) => `node_modules/${name}/dist/all.css`; | ||
exports.themeVersion = '^4.42.0'; | ||
function importTheme(options) { | ||
@@ -18,3 +19,3 @@ const theme = themePackageName(options); | ||
const dependencies = { | ||
[theme]: 'latest' | ||
[theme]: exports.themeVersion | ||
}; | ||
@@ -21,0 +22,0 @@ return (host, context) => { |
@@ -16,2 +16,4 @@ import { chain, noop, Rule, SchematicContext, SchematicsException } from '@angular-devkit/schematics'; | ||
export const themeVersion = '^4.42.0'; | ||
export function importTheme(options: RegisterSchema): Rule { | ||
@@ -22,3 +24,3 @@ const theme = themePackageName(options); | ||
const dependencies = { | ||
[theme]: 'latest' | ||
[theme]: themeVersion | ||
}; | ||
@@ -25,0 +27,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
197146
4048
2