Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
154 lines (154 loc) · 6.41 KB
/
Copy pathpackage.json
File metadata and controls
154 lines (154 loc) · 6.41 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
{
"name": "@fluidframework/runtime-utils",
"version": "3.14.0",
"description": "Collection of utility functions for Fluid Runtime",
"homepage": "https://fluidframework.com",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/FluidFramework.git",
"directory": "packages/runtime/runtime-utils"
},
"license": "MIT",
"author": "Microsoft and contributors",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./lib/public.d.ts",
"default": "./lib/index.js",
"internal-entrypoint-generation": {
"types": "./dist/public.d.ts"
}
},
"./legacy": {
"types": "./lib/legacy.d.ts",
"default": "./lib/index.js",
"internal-entrypoint-generation": {
"types": "./dist/legacy.d.ts"
}
},
"./legacy/alpha": {
"types": "./lib/legacyAlpha.d.ts",
"default": "./lib/index.js",
"internal-entrypoint-generation": {
"types": "./dist/legacyAlpha.d.ts"
}
},
"./internal": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"scripts": {
"build": "fluid-build . --task build",
"build:api-reports": "concurrently \"npm:build:api-reports:*\"",
"build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor-report.current.json",
"build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor-report.legacy.json",
"build:cjs": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
"build:commonjs": "fluid-build . --task commonjs",
"build:compile": "fluid-build . --task compile",
"build:docs": "api-extractor run --local --config api-extractor/api-extractor-model.json",
"build:entrypoints": "fluid-build . --task build:entrypoints",
"build:entrypoints:cjs": "flub generate entrypoints --resolutionConditions require --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./dist",
"build:entrypoints:esm": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib",
"build:esm": "tsc --project ./tsconfig.json",
"build:genver": "gen-version",
"build:test": "concurrently npm:build:test:esm npm:build:test:cjs",
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
"check:are-the-types-wrong": "attw --pack . --profile esm-only",
"check:biome": "biome check .",
"check:exports": "concurrently \"npm:check:exports:*\"",
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
"check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json",
"check:exports:cjs:legacyAlpha": "api-extractor run --config api-extractor/api-extractor-lint-legacyAlpha.cjs.json",
"check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json",
"check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json",
"check:exports:esm:legacyAlpha": "api-extractor run --config api-extractor/api-extractor-lint-legacyAlpha.esm.json",
"check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
"check:format": "npm run check:biome",
"ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"",
"ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor-report.current.json",
"ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor-report.legacy.json",
"ci:build:docs": "api-extractor run --config api-extractor/api-extractor-model.json",
"clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts legacy \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
"eslint": "eslint --quiet --format stylish src",
"eslint:fix": "eslint --quiet --format stylish src --fix --fix-type problem,suggestion,layout",
"format": "npm run format:biome",
"format:biome": "biome check . --write",
"lint": "fluid-build . --task lint",
"lint:fix": "fluid-build . --task eslint:fix --task format",
"test": "npm run test:mocha",
"test:coverage": "c8 npm test",
"test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
"test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha",
"test:mocha:esm": "mocha",
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
"typetests:gen": "flub generate typetests --dir . -v"
},
"c8": {
"all": true,
"cache-dir": "nyc/.cache",
"exclude": [
"src/test/**/*.*ts",
"dist/test/**/*.*js",
"lib/test/**/*.*js"
],
"exclude-after-remap": false,
"include": [
"src/**/*.*ts",
"dist/**/*.*js",
"lib/**/*.*js"
],
"report-dir": "nyc/report",
"reporter": [
"cobertura",
"html",
"text"
],
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluid-internal/client-utils": "workspace:~",
"@fluidframework/container-definitions": "workspace:~",
"@fluidframework/container-runtime-definitions": "workspace:~",
"@fluidframework/core-interfaces": "workspace:~",
"@fluidframework/core-utils": "workspace:~",
"@fluidframework/datastore-definitions": "workspace:~",
"@fluidframework/driver-definitions": "workspace:~",
"@fluidframework/driver-utils": "workspace:~",
"@fluidframework/runtime-definitions": "workspace:~",
"@fluidframework/telemetry-utils": "workspace:~",
"semver-ts": "^1.0.3"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.5",
"@biomejs/biome": "~2.4.5",
"@fluid-internal/mocha-test-setup": "workspace:~",
"@fluid-tools/build-cli": "catalog:buildTools",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "catalog:buildTools",
"@fluidframework/eslint-config-fluid": "catalog:eslint",
"@fluidframework/runtime-utils-previous": "npm:@fluidframework/runtime-utils@3.13.0",
"@microsoft/api-extractor": "7.60.1",
"@types/mocha": "^10.0.10",
"@types/node": "catalog:types",
"@types/sinon": "^17.0.3",
"c8": "^10.1.3",
"concurrently": "^10.0.3",
"copyfiles": "^2.4.1",
"cross-env": "^10.1.0",
"eslint": "catalog:eslint",
"jiti": "^2.6.1",
"mocha": "^11.7.5",
"mocha-multi-reporters": "^1.5.1",
"rimraf": "^6.1.3",
"sinon": "^18.0.1",
"ts-node": "^10.9.2",
"typescript": "catalog:TypeScript"
},
"typeValidation": {
"broken": {},
"entrypoint": "legacy"
}
}