Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackbaud-SteveBrush committed Jul 25, 2024
1 parent 511f9fd commit 07bf641
Show file tree
Hide file tree
Showing 9 changed files with 16,502 additions and 19,259 deletions.
10 changes: 5 additions & 5 deletions libs/clipboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
},
"homepage": "https://github.com/blackbaud/stache#readme",
"peerDependencies": {
"@angular/common": "^18.0.6",
"@angular/core": "^18.0.6",
"@skyux/core": "^11.0.0-alpha.0",
"@skyux/i18n": "^11.0.0-alpha.0"
"@angular/common": "^18.1.2",
"@angular/core": "^18.1.2",
"@skyux/core": "^11.0.0-alpha.6",
"@skyux/i18n": "^11.0.0-alpha.6"
},
"dependencies": {
"tslib": "^2.6.2"
"tslib": "^2.6.3"
}
}
10 changes: 5 additions & 5 deletions libs/code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
},
"homepage": "https://github.com/blackbaud/stache#readme",
"peerDependencies": {
"@angular/common": "^18.0.6",
"@angular/core": "^18.0.6",
"@angular/platform-browser": "^18.0.6",
"@angular/common": "^18.1.2",
"@angular/core": "^18.1.2",
"@angular/platform-browser": "^18.1.2",
"@blackbaud/skyux-lib-clipboard": "0.0.0-PLACEHOLDER",
"@skyux/i18n": "^11.0.0-alpha.0"
"@skyux/i18n": "^11.0.0-alpha.6"
},
"dependencies": {
"prismjs": "1.29.0",
"tslib": "^2.6.2"
"tslib": "^2.6.3"
}
}
10 changes: 5 additions & 5 deletions libs/media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
},
"homepage": "https://github.com/blackbaud/stache#readme",
"peerDependencies": {
"@angular/common": "^18.0.6",
"@angular/core": "^18.0.6",
"@angular/platform-browser": "^18.0.6",
"@skyux/i18n": "^11.0.0-alpha.0"
"@angular/common": "^18.1.2",
"@angular/core": "^18.1.2",
"@angular/platform-browser": "^18.1.2",
"@skyux/i18n": "^11.0.0-alpha.6"
},
"dependencies": {
"tslib": "^2.6.2"
"tslib": "^2.6.3"
}
}
23 changes: 11 additions & 12 deletions libs/stache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,19 @@
}
},
"peerDependencies": {
"@angular/cli": "^18.0.7",
"@angular/common": "^18.0.6",
"@angular/core": "^18.0.6",
"@angular/platform-browser": "^18.0.6",
"@angular/router": "^18.0.6",
"@skyux/config": "^11.0.0-alpha.0",
"@skyux/core": "^11.0.0-alpha.0",
"@skyux/i18n": "^11.0.0-alpha.0",
"@skyux/layout": "^11.0.0-alpha.0",
"@skyux/lookup": "^11.0.0-alpha.0",
"fs-extra": "^10.1.0 || ^11"
"@angular/cli": "^18.1.2",
"@angular/common": "^18.1.2",
"@angular/core": "^18.1.2",
"@angular/platform-browser": "^18.1.2",
"@angular/router": "^18.1.2",
"@skyux/config": "^11.0.0-alpha.6",
"@skyux/core": "^11.0.0-alpha.6",
"@skyux/i18n": "^11.0.0-alpha.6",
"@skyux/layout": "^11.0.0-alpha.6",
"@skyux/lookup": "^11.0.0-alpha.6"
},
"dependencies": {
"lodash.get": "4.4.2",
"tslib": "^2.6.2"
"tslib": "^2.6.3"
}
}
3 changes: 2 additions & 1 deletion libs/stache/schematics/ng-add/ng-add.schematic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
SchematicTestRunner,
UnitTestTree,
} from '@angular-devkit/schematics/testing';
import { VERSION } from '@skyux/packages';

import { createTestLibrary } from '../testing/scaffold';

Expand Down Expand Up @@ -40,7 +41,7 @@ describe('ng-add.schematic', () => {
];

for (const packageName of packageNames) {
expect(packageJson.dependencies[packageName]).toEqual('^11.0.0-alpha.0');
expect(packageJson.dependencies[packageName]).toEqual(`^${VERSION}`);
}
});
});
13 changes: 1 addition & 12 deletions libs/stache/schematics/ng-add/ng-add.schematic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import {
addPackageJsonDependency,
} from '@schematics/angular/utility/dependencies';

import fs from 'fs-extra';
import path from 'path';

function installEssentialSkyUxPackages(skyuxVersion: string): Rule {
return async (tree) => {
const packageNames = [
Expand All @@ -31,16 +28,8 @@ function installEssentialSkyUxPackages(skyuxVersion: string): Rule {

export default function ngAdd(): Rule {
return async (_tree, context) => {
// Get the preferred version of SKY UX found in the "peerDependencies" section of
// @blackbaud/skyux-lib-stache package.json.
const packageJson = fs.readJsonSync(
path.resolve(__dirname, '../../package.json'),
);

const skyuxVersion = packageJson.peerDependencies['@skyux/core'];

context.addTask(new NodePackageInstallTask());

return chain([installEssentialSkyUxPackages(skyuxVersion)]);
return chain([installEssentialSkyUxPackages('^11')]);
};
}
Loading

0 comments on commit 07bf641

Please sign in to comment.