forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
212 lines (212 loc) · 8.96 KB
/
package.json
File metadata and controls
212 lines (212 loc) · 8.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
{
"name": "build-tools-release-group-root",
"version": "0.65.0",
"private": true,
"homepage": "https://fluidframework.com",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/FluidFramework.git",
"directory": "build-tools"
},
"license": "MIT",
"author": "Microsoft and contributors",
"scripts": {
"build": "fluid-build --task build",
"build:compile": "fluid-build --task compile",
"build:docs": "fluid-build --task build:docs",
"build:fast": "fluid-build --worker",
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 2 --commit-path . -t build-tools_v",
"check:biome": "biome check .",
"check:format": "npm run check:biome",
"checks": "fluid-build --task checks",
"ci:build": "npm run build",
"ci:eslint": "fluid-build --task eslint",
"ci:test": "npm run test:mocha",
"ci:test:coverage": "npm run test:coverage",
"clean": "fluid-build --task clean",
"clean:docs": "rimraf --glob \"**/_api-extractor-temp\"",
"clean:nyc": "rimraf --glob \"nyc/**\"",
"commit": "git-cz",
"format": "npm run format:biome",
"format:biome": "biome check --write .",
"generate:packageList": "concurrently \"npm:generate:packageList:*\"",
"generate:packageList:internal-build": "flub list build-tools --no-private --feed internal-build --outFile feeds/internal-build.txt",
"generate:packageList:internal-dev": "flub list build-tools --no-private --feed internal-dev --outFile feeds/internal-dev.txt",
"generate:packageList:internal-test": "flub list build-tools --no-private --feed internal-test --outFile feeds/internal-test.txt",
"generate:packageList:public": "flub list build-tools --no-private --feed public --outFile feeds/public.txt",
"preinstall": "node ../scripts/only-pnpm.cjs",
"postinstall": "cd ../common/build/eslint-config-fluid && pnpm install",
"install:commitlint": "npm install --global @commitlint/config-conventional",
"lint": "npm run syncpack:deps && npm run syncpack:versions && npm run check:format && npm run ci:eslint",
"lint:fix": "npm run syncpack:deps:fix && npm run syncpack:versions:fix && npm run format && pnpm run -r --no-sort --stream lint:fix",
"packlist": "flub generate packlist -g build-tools",
"policy-check": "node packages/build-cli/bin/dev check policy",
"policy-check:asserts": "node packages/build-cli/bin/dev check policy --handler assert-short-codes --fix",
"policy-check:fix": "node packages/build-cli/bin/dev check policy --excludeHandler assert-short-codes --fix",
"syncpack:deps": "syncpack lint-semver-ranges --config .syncpackrc.yml",
"syncpack:deps:fix": "syncpack set-semver-ranges --config .syncpackrc.yml",
"syncpack:versions": "syncpack list-mismatches --config .syncpackrc.yml",
"syncpack:versions:fix": "syncpack fix-mismatches --config .syncpackrc.yml",
"test": "npm run test:mocha",
"test:bail": "npm run test:mocha:bail",
"test:copyresults": "copyfiles --exclude \"**/node_modules/**\" \"**/nyc/**\" nyc",
"test:coverage": "c8 npm run test:mocha",
"test:mocha": "pnpm run -r --no-sort --workspace-concurrency=1 --stream --no-bail test:mocha --color",
"test:mocha-comment": "echo TODO:AB#47469: --workspace-concurrency=1 is a workaround for bug",
"test:mocha:bail": "pnpm run -r --no-sort --stream test:mocha",
"tsc": "fluid-build --task tsc",
"tsc:fast": "fluid-build --root . --task tsc --worker",
"watch": "pnpm run -r --parallel tsc --watch"
},
"c8": {
"all": true,
"cache-dir": "nyc/.cache",
"exclude": [],
"include": [],
"report-dir": "nyc/report",
"reporter": [
"cobertura",
"html",
"text"
],
"temp-directory": "nyc/.nyc_output"
},
"devDependencies": {
"@biomejs/biome": "~2.4.5",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@commitlint/cz-commitlint": "^20.1.0",
"@fluid-tools/build-cli": "~0.63.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "~0.63.0",
"@fluidframework/eslint-config-fluid": "link:../common/build/eslint-config-fluid",
"@microsoft/api-extractor": "^7.58.1",
"c8": "^10.1.3",
"commitizen": "^4.3.1",
"concurrently": "^9.2.1",
"conventional-changelog-cli": "^5.0.0",
"conventional-changelog-conventionalcommits": "^9.1.0",
"copyfiles": "^2.4.1",
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^7.5.4",
"eslint": "~9.39.2",
"inquirer": "^9.3.7",
"jiti": "^2.6.1",
"rimraf": "^6.1.3",
"run-script-os": "^1.1.6",
"syncpack": "^13.0.4",
"typescript": "~5.4.5"
},
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
"engines": {
"node": ">=22.22.2"
},
"dependenciesComments": {
"@fluidframework/build-tools": "Provides fluid-build which is used by the `build:fast` script. To allow this to work when the workspace version of build-tools has not been built yet, a prepackaged version is depended on. If this self-dependency becomes problematic, the `build` script can be used which does not require it."
},
"fluidBuild": {
"tasks": {
"build": {
"dependsOn": [
"^build",
"generate:packageList",
"syncpack:deps",
"syncpack:versions"
],
"script": false
},
"checks": {
"dependsOn": [
"check:format",
"generate:packageList",
"syncpack:deps",
"syncpack:versions"
],
"script": false
},
"clean": {
"dependsOn": [
"^clean",
"clean:docs",
"clean:nyc"
],
"script": false
}
}
},
"pnpm": {
"peerDependencyComments": [
"@types/node is a peer dependency because of build tools. The package is not needed because it's only used for compilation. It's not needed at runtime.",
"oclif includes some AWS-related features, but we don't use them, so we ignore @aws-sdk peer dependencies."
],
"peerDependencyRules": {
"ignoreMissing": [
"@types/node",
"@aws-sdk/*"
]
},
"overrideComments": [
"eslint: jssm-viz-cli brings in ESLint 8.x as a transitive dependency. Force ESLint 9.x to ensure consistent version across the workspace.",
"oclif includes some AWS-related features, but we don't use them, so we drop those dependencies. This helps reduce lockfile churn since the deps release very frequently.",
"@types/node: To avoid duplicating the oclif package and adding a bunch of dependencies, force @types/node to a single version. For some reason version 22.8.0 can't be overridden, so use that to ensure a single version",
"@types/minimatch: @types/glob@7.x uses minimatch.IOptions and minimatch.IMinimatch interfaces. Force @types/minimatch@5 which includes these legacy type definitions.",
"mdast-util-gfm-footnote: mdast-util-gfm@3.1.0 has a type definition bug where it imports ToMarkdownOptions from mdast-util-gfm-footnote, but version 2.0.0 doesn't export it. Override to 2.1.0 which includes the missing export.",
"qs: overridden to ^6.15.0 to resolve a known vulnerability in older versions.",
"js-yaml: overridden to fix a known vulnerability (prototype pollution via merge keys).",
"mdast-util-to-hast: overridden to ^13.2.1 to fix a known vulnerability (unsanitized class attribute injection).",
"simple-git: overridden to ^3.32.3 to resolve a CG alert.",
"diff: overridden to patched versions to resolve a known ReDoS vulnerability. diff@7.x has no fix so it is bumped to 8.0.3.",
"tar: overridden to ^7.5.11 to resolve multiple security vulnerabilities in tar 6.x (EOL, no backport).",
"serialize-javascript: overridden to ^7.0.4 to resolve GHSA-5c6j-r48x-rmvq. No 6.x fix exists; 7.x is API-compatible (only drops Node <20 support).",
"picomatch: overridden to patched versions to resolve a known security vulnerability.",
"commitizen>lodash: commitizen@4.3.1 (latest and final release) pins lodash to exactly 4.17.21. Override to ^4.18.1 so pnpm can resolve to a newer version."
],
"overrides": {
"lodash": "^4.18.1",
"@types/glob>@types/minimatch": "~5.1.2",
"diff@>=4 <5": "^4.0.4",
"diff@>=7 <8": "^8.0.3",
"diff@>=8 <9": "^8.0.3",
"@types/node": "~22.19.17",
"eslint": "~9.39.2",
"json5@<1.0.2": "^1.0.2",
"json5@>=2.0.0 <2.2.2": "^2.2.2",
"mdast-util-gfm-footnote": "^2.1.0",
"js-yaml@<4": "^3.14.2",
"js-yaml@>=4": "^4.1.1",
"jws": "^3.2.3",
"mdast-util-to-hast": "^13.2.1",
"oclif>@aws-sdk/client-cloudfront": "-",
"oclif>@aws-sdk/client-s3": "-",
"qs": "^6.15.0",
"simple-git": "^3.32.3",
"sharp": "^0.34.5",
"tar": "^7.5.11",
"minimatch@>=3 <4": "^3.1.5",
"minimatch@>=5 <6": "^5.1.9",
"minimatch@>=6 <7": "^6.2.3",
"minimatch@>=7 <8": "^7.4.9",
"minimatch@>=8 <9": "^8.0.7",
"minimatch@>=9 <10": "^9.0.9",
"minimatch@>=10 <11": "^10.2.4",
"serialize-javascript@>=6 <7": "^7.0.4",
"picomatch@>=2 <3": "^2.3.2",
"picomatch@>=4 <5": "^4.0.4"
},
"updateConfig": {
"ignoreDependencies": [
"latest-version",
"read-pkg-up",
"type-fest",
"typescript"
]
},
"onlyBuiltDependencies": [
"@biomejs/biome",
"core-js",
"es5-ext",
"sharp",
"unrs-resolver"
]
}
}