Skip to content

Commit a7f6954

Browse files
Added filestack-js as peer dependency (#82)
* Added filestack-js as peer dependency * changd filestack-js version to >3.0.0 --------- Co-authored-by: Rishi Anand <rishi.a@celestialsys.com>
1 parent a17e525 commit a7f6954

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

projects/filestack-angular/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"name": "@filestack/angular",
33
"version": "4.0.0-beta.2",
4-
"dependencies": {
5-
"filestack-js": "^4.0.0"
6-
},
74
"peerDependencies": {
85
"@angular/common": ">=19.0.0",
9-
"@angular/core": ">=19.0.0"
6+
"@angular/core": ">=19.0.0",
7+
"filestack-js": ">3.0.0"
108
},
119
"schematics": "./schematics/collection.json",
1210
"ng-add": {

projects/filestack-angular/schematics/ng-add/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ import { getWorkspace } from '@schematics/angular/utility/workspace';
1616

1717
import { Schema } from './schema';
1818

19-
// Keep aligned with the filestack-js dependency range in package.json.
20-
const FILESTACK_JS_VERSION = '^4.0.0';
19+
// filestack-js is a peerDependency of @filestack/angular. Keep this in sync with
20+
// the peerDependencies range in package.json so `ng add` writes a matching
21+
// dependency into the consumer app; npm then resolves to the newest satisfying
22+
// version (currently the latest 4.x).
23+
const FILESTACK_JS_VERSION = '>3.0.0';
2124

2225
/**
2326
* `ng add @filestack/angular` schematic.

0 commit comments

Comments
 (0)