forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
383 lines (383 loc) · 15 KB
/
package.json
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
{
"name": "client-release-group-root",
"version": "2.0.0-rc.1.0.0",
"private": true,
"homepage": "https://fluidframework.com",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/FluidFramework.git",
"directory": ""
},
"license": "MIT",
"author": "Microsoft and contributors",
"scripts": {
"build": "fluid-build --task build",
"build:api": "fluid-build --task build:api",
"build:compile": "fluid-build --task compile",
"build:docs": "fluid-build --task build:docs",
"build:eslint": "fluid-build --task eslint",
"build:fast": "fluid-build --task build --worker",
"build:full": "fluid-build --task full",
"build:full:compile": "fluid-build --task compile --task webpack",
"build:gendocs": "concurrently npm:build:gendocs:client npm:build:gendocs:server && cd docs && npm run build",
"build:gendocs:client": "fluid-build --task build:gendocs:client",
"build:gendocs:client:azure": "copyfiles \"azure/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:client:examples": "copyfiles \"examples/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:client:experimental": "copyfiles \"experimental/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:client:packages": "copyfiles \"packages/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:server": "concurrently \"npm:build:gendocs:server:*\"",
"build:gendocs:server:routerlicious": "copyfiles \"server/routerlicious/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:readme": "markdown-magic --files \"**/*.md\" !docs",
"bundle-analysis:collect": "npm run webpack:profile && flub generate bundleStats",
"bundle-analysis:run": "flub run bundleStats --dangerfile build-tools/packages/build-cli/lib/lib/dangerfile.js",
"changeset": "flub changeset add --releaseGroup client",
"check:are-the-types-wrong": "fluid-build --task check:are-the-types-wrong",
"check:versions": "flub check buildVersion -g client --path .",
"check:versions:fix": "flub check buildVersion -g client --path . --fix",
"checks": "fluid-build --task checks",
"checks:fix": "fluid-build --task checks:fix",
"ci:build": "fluid-build --task ci:build",
"ci:build:docs": "fluid-build --task ci:build:docs",
"ci:test:jest": "npm run test:jest:report",
"ci:test:jest:coverage": "c8 --no-clean npm run test:jest:report",
"ci:test:mocha": "npm run test:mocha",
"ci:test:mocha:coverage": "c8 --no-clean npm run test:mocha -- --timeout 4s",
"ci:test:realsvc:local": "pnpm run -r --no-sort --stream --no-bail test:realsvc:local:report",
"ci:test:realsvc:local:coverage": "c8 --no-clean pnpm recursive --no-sort --stream --no-bail run test:realsvc:local:report",
"ci:test:realsvc:local:full": "pnpm run -r --no-sort --stream --no-bail test:realsvc:local:report:full",
"ci:test:realsvc:local:full:coverage": "c8 --no-clean pnpm recursive --no-sort --stream --no-bail run test:realsvc:local:report:full",
"ci:test:realsvc:tinylicious": "pnpm run -r --no-sort --stream --no-bail test:realsvc:tinylicious:report",
"ci:test:realsvc:tinylicious:coverage": "c8 --no-clean pnpm run -r --no-sort --stream --no-bail test:realsvc:tinylicious:report ",
"ci:test:realsvc:tinylicious:full": "pnpm run -r --no-sort --stream --no-bail test:realsvc:tinylicious:report:full",
"ci:test:realsvc:tinylicious:full:coverage": "c8 --no-clean pnpm run -r --no-sort --stream --no-bail test:realsvc:tinylicious:report:full",
"ci:test:stress:tinylicious": "pnpm run -r --no-sort --stream --no-bail test:stress:tinylicious:report ",
"ci:test:stress:tinylicious:coverage": "c8 --no-clean pnpm run -r --no-sort --stream --no-bail test:stress:tinylicious:report ",
"clean": "fluid-build --task clean",
"clean:docs": "rimraf --glob \"**/_api-extractor-temp*\" \"docs/api/*/**\"",
"clean:nyc": "rimraf --glob \"nyc/**\"",
"clean:r11s": "fluid-build -g server --task clean",
"clean:root": "rimraf --glob \"*.done.build.log\"",
"format": "npm run prettier:root:fix && pnpm run -r --no-sort --stream format",
"format:changed": "npm run format:changed:main",
"format:changed:main": "pretty-quick --branch main",
"format:changed:next": "pretty-quick --branch next",
"format:repo": "npm run prettier:repo:fix",
"generate:packageList": "fluid-build --task generate:packageList",
"generate:packageList:internal-build": "flub list --no-private -g client --feed internal-build --outFile feeds/internal-build.txt",
"generate:packageList:internal-dev": "flub list --no-private -g client --feed internal-dev --outFile feeds/internal-dev.txt",
"generate:packageList:internal-test": "flub list --no-private -g client --feed internal-test --outFile feeds/internal-test.txt",
"generate:packageList:public": "flub list --no-private -g client --feed public --outFile feeds/public.txt",
"preinstall": "node scripts/only-pnpm.cjs",
"layer-check": "flub check layers --info layerInfo.json",
"lint": "fluid-build --task lint",
"lint:fix": "fluid-build --task lint:fix",
"policy-check": "flub check policy",
"policy-check-help": "echo Detect (and error on) policy-check violations, like package.json sorting, copyright headers etc. Excludes assert-short-code. Run the check or \"pnpm flub check policy --listHandlers\" for a full list.",
"policy-check:asserts": "flub check policy --handler assert-short-codes --fix && pretty-quick",
"policy-check:fix": "flub check policy --excludeHandler assert-short-codes --fix",
"policy-check:fix-help": "echo Fix policy-check violations excludes assert-short-code/",
"prettier": "fluid-build --task prettier",
"prettier:fix": "fluid-build --task prettier:fix",
"prettier:repo": "prettier --check . --cache --ignore-path ./.prettierignore",
"prettier:repo:fix": "prettier --write . --cache --ignore-path ./.prettierignore",
"prettier:root": "prettier --check \"./*.*\" --cache --ignore-path .prettierignore --ignore-unknown",
"prettier:root:fix": "prettier --write \"./*.*\" --cache --ignore-path .prettierignore --ignore-unknown",
"restart": "cd server/routerlicious && npm run restart",
"start:docker": "docker-compose -f server/docker-compose.yml up",
"stop:docker": "docker-compose -f server/docker-compose.yml down",
"stop:docker:full": "docker-compose -f server/docker-compose.yml down && docker volume prune --force",
"syncpack:deps": "syncpack lint-semver-ranges",
"syncpack:deps:fix": "syncpack set-semver-ranges",
"syncpack:versions": "syncpack list-mismatches",
"syncpack:versions:fix": "syncpack fix-mismatches",
"test": "npm run test:mocha && npm run test:jest && npm run test:realsvc && npm run test:stress",
"test:bail": "npm run test:mocha:bail && npm run test:jest:bail",
"test:benchmark:copyresults": "copyfiles --exclude \"**/node_modules/**\" \"**/benchmarkOutput/**\" benchmarkOutput",
"test:benchmark:report": "pnpm run -r --no-sort --stream --no-bail test:benchmark:report --reporterOptions reportDir=./benchmarkOutput",
"test:copyresults": "copyfiles --exclude \"**/node_modules/**\" \"**/nyc/**\" nyc",
"test:coverage": "c8 npm test",
"test:fromroot": "mocha \"packages/**/dist/test/**/*.spec.*js\" --exit",
"test:jest": "assign-test-ports && pnpm run -r --no-sort --stream --no-bail test:jest --color",
"test:jest:bail": "assign-test-ports && pnpm run -r --no-sort --stream test:jest",
"test:jest:report": "assign-test-ports && pnpm run -r --no-sort --stream --no-bail test:jest --ci",
"test:memory-profiling:copyresults": "copyfiles --exclude \"**/node_modules/**\" \"**/memoryProfilingOutput/**\" memoryProfilingOutput",
"test:memory-profiling:report": "pnpm run -r --no-sort --stream --no-bail test:memory-profiling:report -- --reporterOptions reportDir=./memoryProfilingOutput",
"test:mocha": "pnpm run -r --no-sort --stream --no-bail test:mocha --color",
"test:mocha:bail": "pnpm run -r --no-sort --stream test:mocha",
"test:realsvc": "pnpm run -r --no-sort --stream --no-bail test:realsvc",
"test:stress": "pnpm run -r --no-sort --stream --no-bail test:stress",
"tsc": "fluid-build --task tsc",
"tsc:fast": "fluid-build --task tsc --worker",
"typetests:gen": "fluid-build --task typetests:gen",
"typetests:prepare": "flub typetests -g client --reset --previous --normalize",
"watch": "concurrently \"npm run watch:tsc\" \"npm run watch:esnext\" \"npm run watch:webpack\"",
"watch:esnext": "pnpm run -r --parallel build:esnext --watch",
"watch:tsc": "pnpm run -r --parallel tsc --watch",
"watch:webpack": "pnpm run -r --parallel webpack --watch",
"webpack": "fluid-build --task webpack",
"webpack:profile": "fluid-build --task webpack:profile"
},
"c8": {
"all": true,
"cache-dir": "nyc/.cache",
"exclude": [
"**/*.d.*ts",
"**/src/test/**/*.*ts",
"**/dist/test/**/*.*js",
"experimental/examples/**",
"experimental/PropertyDDS/examples/**",
"**/*.bundle.js",
"packages/tools/devtools/devtools-browser-extension/dist/e2e-tests/**",
"packages/tools/devtools/devtools-browser-extension/dist/bundle/**"
],
"exclude-after-remap": false,
"extension": [
".ts",
".tsx",
".js",
".jsx"
],
"include": [
"packages/**/src/**/*.*ts",
"packages/**/dist/**/*.*js",
"experimental/**/src/**/*.*ts",
"experimental/**/dist/**/*.*js"
],
"merge-async": true,
"report-dir": "nyc/report",
"reporter": [
"cobertura",
"html",
"text"
],
"temp-directory": "nyc/.nyc_output"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@fluid-private/changelog-generator-wrapper": "file:tools/changelog-generator-wrapper",
"@fluid-tools/build-cli": "^0.29.0",
"@fluid-tools/markdown-magic": "file:tools/markdown-magic",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.29.0",
"@fluidframework/eslint-config-fluid": "^3.3.0",
"@fluidframework/test-tools": "^1.0.195075",
"@microsoft/api-documenter": "^7.21.6",
"@microsoft/api-extractor": "^7.39.1",
"@octokit/core": "^4.0.5",
"auto-changelog": "^2.4.0",
"c8": "^8.0.1",
"changesets-format-with-issue-links": "^0.3.0",
"concurrently": "^8.2.1",
"copyfiles": "^2.4.1",
"danger": "^11.3.0",
"eslint": "~8.50.0",
"jest": "^29.6.2",
"mocha": "^10.2.0",
"prettier": "~3.0.3",
"pretty-quick": "^3.1.3",
"rimraf": "^4.4.0",
"run-script-os": "^1.1.6",
"syncpack": "^9.8.4",
"typescript": "~5.1.6"
},
"packageManager": "[email protected]+sha512.90e27fd38047f18583f3342f784cc3f187f4d4caac89ebc1fffae18dcd7b2dde7678a0bf237481bcb8f7e8e66135fa34803856e4eb2c442ce082ffab5d9d241f",
"engines": {
"node": ">=18.17.1",
"pnpm": "7"
},
"fluidBuild": {
"tasks": {
"build": {
"dependsOn": [
"^build",
"build:docs",
"build:gendocs:client",
"checks"
],
"script": false
},
"build:api": {
"dependsOn": [
"^build:docs",
"build:gendocs:client"
],
"script": false
},
"build:docs": {
"dependsOn": [
"^build:docs",
"build:gendocs:client",
"build:readme"
],
"script": false
},
"build:gendocs:client": {
"dependsOn": [
"build:gendocs:client:azure",
"build:gendocs:client:examples",
"build:gendocs:client:experimental",
"build:gendocs:client:packages"
],
"script": false
},
"build:gendocs:client:azure": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:gendocs:client:examples": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:gendocs:client:experimental": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:gendocs:client:packages": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:readme": {
"dependsOn": []
},
"checks": {
"dependsOn": [
"^checks",
"generate:packageList",
"policy-check",
"layer-check",
"syncpack:deps",
"syncpack:versions",
"check:versions",
"prettier"
],
"script": false
},
"checks:fix": {
"dependsOn": [
"^checks:fix",
"generate:packageList",
"policy-check:fix",
"syncpack:deps:fix",
"syncpack:versions:fix",
"check:versions:fix",
"prettier:fix"
],
"script": false
},
"ci:build": {
"dependsOn": [
"^ci:build",
"ci:build:docs"
],
"script": false
},
"ci:build:docs": {
"dependsOn": [
"^ci:build:docs",
"build:gendocs:client"
],
"script": false
},
"clean": {
"dependsOn": [
"^clean",
"clean:root",
"clean:docs",
"clean:nyc"
],
"script": false
},
"clean:docs": {
"before": [
"*"
]
},
"clean:nyc": {
"before": [
"*"
]
},
"generate:packageList": {
"dependsOn": [
"generate:packageList:internal-build",
"generate:packageList:internal-dev",
"generate:packageList:internal-test",
"generate:packageList:public"
],
"script": false
},
"lint": {
"dependsOn": [
"checks"
],
"script": false
},
"lint:fix": {
"dependsOn": [
"checks:fix"
],
"script": false
},
"prettier": {
"dependsOn": [
"prettier:root",
"^prettier"
],
"script": false
},
"prettier:fix": {
"dependsOn": [
"prettier:root:fix",
"^prettier:fix"
],
"script": false
}
}
},
"pnpm": {
"comments": [
"nodegit is replaced with an empty package here because it's currently only used by good-fences for features we do not need, and has issues building when changing node versions. See https://github.com/smikula/good-fences/issues/105 for details.",
"codemirror and marked overrides are because simplemde use * versions, and the fully up to date versions of its deps do not work. packageExtensions was tried to fix this, but did not work.",
"Fixing the @oclif/core version avoids a large number of peer dep errors since 2.6 adds a prod dep on ts-node and thus a peer dep on @types/node"
],
"overrides": {
"@types/node@<18": "^18.19.0",
"node-fetch": "^2.6.9",
"good-fences>nodegit": "npm:[email protected]",
"qs": "^6.11.0",
"simplemde>codemirror": "^5.65.11",
"simplemde>marked": "^4.3.0",
"@oclif/core": "~2.4.0"
},
"peerDependencyComments": [
"@types/node is ignored because it is usually not needed by packages, and if it is, then the package will hit a compilation failure.",
"Peer dependencies on fluid-framework are never fulfilled since that's an in-repo dependency; we expect a customer using some packages to install it as a dependency.",
"markdown-magic is provided by another dependency so is ignored here."
],
"peerDependencyRules": {
"allowedVersions": {
"react": "17.0.2",
"react-dom": "17.0.2",
"webpack": "^5.82.0"
},
"ignoreMissing": [
"@types/node",
"fluid-framework",
"markdown-magic"
]
},
"patchedDependencies": {
"@microsoft/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
}
}