@fluidframework/register-collection 1.4.0-121020 → 2.0.0-dev-rc.1.0.0.225277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/.eslintrc.js +5 -7
  2. package/.mocharc.js +12 -0
  3. package/CHANGELOG.md +117 -0
  4. package/README.md +29 -8
  5. package/api-extractor-esm.json +4 -0
  6. package/api-extractor-lint.json +4 -0
  7. package/api-extractor.json +2 -2
  8. package/api-report/register-collection.api.md +90 -0
  9. package/dist/{consensusRegisterCollection.js → consensusRegisterCollection.cjs} +31 -29
  10. package/dist/consensusRegisterCollection.cjs.map +1 -0
  11. package/dist/consensusRegisterCollection.d.ts +2 -1
  12. package/dist/consensusRegisterCollection.d.ts.map +1 -1
  13. package/dist/{consensusRegisterCollectionFactory.js → consensusRegisterCollectionFactory.cjs} +5 -4
  14. package/dist/consensusRegisterCollectionFactory.cjs.map +1 -0
  15. package/dist/consensusRegisterCollectionFactory.d.ts +2 -1
  16. package/dist/consensusRegisterCollectionFactory.d.ts.map +1 -1
  17. package/dist/index.cjs +14 -0
  18. package/dist/index.cjs.map +1 -0
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/{interfaces.js → interfaces.cjs} +3 -2
  22. package/dist/interfaces.cjs.map +1 -0
  23. package/dist/interfaces.d.ts +9 -5
  24. package/dist/interfaces.d.ts.map +1 -1
  25. package/dist/{packageVersion.js → packageVersion.cjs} +2 -2
  26. package/dist/packageVersion.cjs.map +1 -0
  27. package/dist/packageVersion.d.ts +1 -1
  28. package/dist/packageVersion.d.ts.map +1 -1
  29. package/dist/register-collection-alpha.d.ts +163 -0
  30. package/dist/register-collection-beta.d.ts +25 -0
  31. package/dist/register-collection-public.d.ts +25 -0
  32. package/dist/register-collection-untrimmed.d.ts +163 -0
  33. package/dist/tsdoc-metadata.json +11 -0
  34. package/lib/{consensusRegisterCollection.d.ts → consensusRegisterCollection.d.mts} +5 -4
  35. package/lib/consensusRegisterCollection.d.mts.map +1 -0
  36. package/lib/{consensusRegisterCollection.js → consensusRegisterCollection.mjs} +27 -25
  37. package/lib/consensusRegisterCollection.mjs.map +1 -0
  38. package/lib/{consensusRegisterCollectionFactory.d.ts → consensusRegisterCollectionFactory.d.mts} +4 -3
  39. package/lib/consensusRegisterCollectionFactory.d.mts.map +1 -0
  40. package/lib/{consensusRegisterCollectionFactory.js → consensusRegisterCollectionFactory.mjs} +5 -4
  41. package/lib/consensusRegisterCollectionFactory.mjs.map +1 -0
  42. package/lib/index.d.mts +8 -0
  43. package/lib/index.d.mts.map +1 -0
  44. package/lib/index.mjs +8 -0
  45. package/lib/index.mjs.map +1 -0
  46. package/lib/{interfaces.d.ts → interfaces.d.mts} +10 -6
  47. package/lib/interfaces.d.mts.map +1 -0
  48. package/lib/{interfaces.js → interfaces.mjs} +2 -1
  49. package/lib/interfaces.mjs.map +1 -0
  50. package/lib/{packageVersion.d.ts → packageVersion.d.mts} +2 -2
  51. package/lib/packageVersion.d.mts.map +1 -0
  52. package/lib/{packageVersion.js → packageVersion.mjs} +2 -2
  53. package/lib/packageVersion.mjs.map +1 -0
  54. package/lib/register-collection-alpha.d.mts +163 -0
  55. package/lib/register-collection-beta.d.mts +25 -0
  56. package/lib/register-collection-public.d.mts +25 -0
  57. package/lib/register-collection-untrimmed.d.mts +163 -0
  58. package/package.json +135 -62
  59. package/prettier.config.cjs +8 -0
  60. package/src/consensusRegisterCollection.ts +307 -284
  61. package/src/consensusRegisterCollectionFactory.ts +39 -33
  62. package/src/index.ts +8 -3
  63. package/src/interfaces.ts +52 -43
  64. package/src/packageVersion.ts +1 -1
  65. package/tsc-multi.test.json +4 -0
  66. package/tsconfig.json +11 -13
  67. package/dist/consensusRegisterCollection.js.map +0 -1
  68. package/dist/consensusRegisterCollectionFactory.js.map +0 -1
  69. package/dist/index.js +0 -20
  70. package/dist/index.js.map +0 -1
  71. package/dist/interfaces.js.map +0 -1
  72. package/dist/packageVersion.js.map +0 -1
  73. package/lib/consensusRegisterCollection.d.ts.map +0 -1
  74. package/lib/consensusRegisterCollection.js.map +0 -1
  75. package/lib/consensusRegisterCollectionFactory.d.ts.map +0 -1
  76. package/lib/consensusRegisterCollectionFactory.js.map +0 -1
  77. package/lib/index.d.ts +0 -8
  78. package/lib/index.d.ts.map +0 -1
  79. package/lib/index.js +0 -8
  80. package/lib/index.js.map +0 -1
  81. package/lib/interfaces.d.ts.map +0 -1
  82. package/lib/interfaces.js.map +0 -1
  83. package/lib/packageVersion.d.ts.map +0 -1
  84. package/lib/packageVersion.js.map +0 -1
  85. package/tsconfig.esnext.json +0 -7
@@ -0,0 +1,163 @@
1
+ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
2
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
3
+ import { IChannelServices } from '@fluidframework/datastore-definitions';
4
+ import { IChannelStorageService } from '@fluidframework/datastore-definitions';
5
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
6
+ import { IFluidSerializer } from '@fluidframework/shared-object-base';
7
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
8
+ import { ISharedObject } from '@fluidframework/shared-object-base';
9
+ import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
10
+ import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
11
+ import { SharedObject } from '@fluidframework/shared-object-base';
12
+
13
+ /**
14
+ * {@inheritDoc IConsensusRegisterCollection}
15
+ * @alpha
16
+ */
17
+ export declare class ConsensusRegisterCollection<T> extends SharedObject<IConsensusRegisterCollectionEvents> implements IConsensusRegisterCollection<T> {
18
+ /**
19
+ * Create a new consensus register collection
20
+ *
21
+ * @param runtime - data store runtime the new consensus register collection belongs to
22
+ * @param id - optional name of the consensus register collection
23
+ * @returns newly create consensus register collection (but not attached yet)
24
+ */
25
+ static create<T>(runtime: IFluidDataStoreRuntime, id?: string): ConsensusRegisterCollection<T>;
26
+ /**
27
+ * Get a factory for ConsensusRegisterCollection to register with the data store.
28
+ *
29
+ * @returns a factory that creates and load ConsensusRegisterCollection
30
+ */
31
+ static getFactory(): ConsensusRegisterCollectionFactory;
32
+ private readonly data;
33
+ /**
34
+ * Constructs a new consensus register collection. If the object is non-local an id and service interfaces will
35
+ * be provided
36
+ */
37
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
38
+ /**
39
+ * Creates a new register or writes a new value.
40
+ * Returns a promise that will resolve when the write is acked.
41
+ *
42
+ * @returns Promise<true> if write was non-concurrent
43
+ */
44
+ write(key: string, value: T): Promise<boolean>;
45
+ /**
46
+ * Returns the most recent local value of a register.
47
+ * @param key - The key to read
48
+ * @param readPolicy - The ReadPolicy to apply. Defaults to Atomic.
49
+ */
50
+ read(key: string, readPolicy?: ReadPolicy): T | undefined;
51
+ readVersions(key: string): T[] | undefined;
52
+ keys(): string[];
53
+ protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
54
+ /**
55
+ * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
56
+ */
57
+ protected loadCore(storage: IChannelStorageService): Promise<void>;
58
+ protected onDisconnect(): void;
59
+ protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
60
+ private readAtomic;
61
+ /**
62
+ * Process an inbound write op
63
+ * @param key - Key that was written to
64
+ * @param value - Incoming value
65
+ * @param refSeq - RefSeq at the time of write on the remote client
66
+ * @param sequenceNumber - Sequence Number of this write op
67
+ * @param local - Did this write originate on this client
68
+ */
69
+ private processInboundWrite;
70
+ private stringify;
71
+ private parse;
72
+ protected applyStashedOp(): () => void;
73
+ }
74
+
75
+ /**
76
+ * The factory that defines the consensus queue.
77
+ * @alpha
78
+ */
79
+ export declare class ConsensusRegisterCollectionFactory implements IConsensusRegisterCollectionFactory {
80
+ static Type: string;
81
+ static readonly Attributes: IChannelAttributes;
82
+ get type(): string;
83
+ get attributes(): IChannelAttributes;
84
+ /**
85
+ * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
86
+ */
87
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IConsensusRegisterCollection>;
88
+ create(document: IFluidDataStoreRuntime, id: string): IConsensusRegisterCollection;
89
+ }
90
+
91
+ /**
92
+ * A distributed data structure that holds a set of registers with update
93
+ * versions. On concurrent updates, a register internally stores all possible versions of a value by using reference
94
+ * sequence number of the incoming update.
95
+ *
96
+ * Using all the stored versions, we can then distinguish amongst different read policies. Below are the policies
97
+ * we support:
98
+ *
99
+ * Atomic: Atomicity requires a linearizable register. A linearizable register behaves as if there is only a single
100
+ * copy of the data, and that every operation appears to take effect atomically at one point in time. This definition
101
+ * implies that operations are executed in an well-defined order. On a concurrent update, we perform a compare-and-set
102
+ * operation, where we compare a register sequence number with the incoming reference sequence number.
103
+ * The earliest operation overwriting prior sequence numbers wins since every client reaches to an agreement on
104
+ * the value. So we can safely return the first value.
105
+ *
106
+ * LWW: The last write to a key always wins.
107
+ * @alpha
108
+ */
109
+ export declare interface IConsensusRegisterCollection<T = any> extends ISharedObject<IConsensusRegisterCollectionEvents> {
110
+ /**
111
+ * Attempts to write a register with a value. Returns a promise to indicate the roundtrip completion.
112
+ * For a non existent register, it will attempt to create a new register with the specified value.
113
+ *
114
+ * @returns Promise<true> if write was non-concurrent
115
+ */
116
+ write(key: string, value: T): Promise<boolean>;
117
+ /**
118
+ * Retrieves the agreed upon value for the register based on policy. Returns undefined if not present.
119
+ */
120
+ read(key: string, policy?: ReadPolicy): T | undefined;
121
+ /**
122
+ * Retrives all concurrent versions. Undefined if not present.
123
+ */
124
+ readVersions(key: string): T[] | undefined;
125
+ /**
126
+ * Returns the keys.
127
+ */
128
+ keys(): string[];
129
+ }
130
+
131
+ /**
132
+ * Events emitted by {@link IConsensusRegisterCollection}.
133
+ * @alpha
134
+ */
135
+ export declare interface IConsensusRegisterCollectionEvents extends ISharedObjectEvents {
136
+ (event: "atomicChanged" | "versionChanged", listener: (key: string, value: any, local: boolean) => void): any;
137
+ }
138
+
139
+ /**
140
+ * Consensus Register Collection channel factory interface
141
+ *
142
+ * Extends the base IChannelFactory to return a more definite type of IConsensusRegisterCollection
143
+ * Use for the runtime to create and load distributed data structure by type name of each channel.
144
+ * @alpha
145
+ */
146
+ export declare interface IConsensusRegisterCollectionFactory extends IChannelFactory {
147
+ /**
148
+ * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
149
+ */
150
+ load(document: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IConsensusRegisterCollection>;
151
+ create(document: IFluidDataStoreRuntime, id: string): IConsensusRegisterCollection;
152
+ }
153
+
154
+ /**
155
+ * Read policies used when reading the map value.
156
+ * @alpha
157
+ */
158
+ export declare enum ReadPolicy {
159
+ Atomic = 0,
160
+ LWW = 1
161
+ }
162
+
163
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/register-collection",
3
- "version": "1.4.0-121020",
3
+ "version": "2.0.0-dev-rc.1.0.0.225277",
4
4
  "description": "Consensus Register",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -11,44 +11,72 @@
11
11
  "license": "MIT",
12
12
  "author": "Microsoft and contributors",
13
13
  "sideEffects": false,
14
- "main": "dist/index.js",
15
- "module": "lib/index.js",
16
- "types": "dist/index.d.ts",
17
- "scripts": {
18
- "build": "npm run build:genver && concurrently npm:build:compile npm:lint && npm run build:docs",
19
- "build:commonjs": "npm run tsc && npm run typetests:gen && npm run build:test",
20
- "build:compile": "concurrently npm:build:commonjs npm:build:esnext",
21
- "build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
22
- "build:esnext": "tsc --project ./tsconfig.esnext.json",
23
- "build:full": "npm run build",
24
- "build:full:compile": "npm run build:compile",
25
- "build:genver": "gen-version",
26
- "build:test": "tsc --project ./src/test/tsconfig.json",
27
- "ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
28
- "clean": "rimraf dist lib *.tsbuildinfo *.build.log",
29
- "eslint": "eslint --format stylish src",
30
- "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
31
- "lint": "npm run eslint",
32
- "lint:fix": "npm run eslint:fix",
33
- "test": "npm run test:mocha",
34
- "test:coverage": "nyc npm test -- --reporter xunit --reporter-option output=nyc/junit-report.xml",
35
- "test:mocha": "mocha --ignore 'dist/test/types/*' --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",
36
- "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
37
- "tsc": "tsc",
38
- "typetests:gen": "flub generate typetests --generate --dir . --no-generateInName",
39
- "typetests:prepare": "flub generate typetests --prepare --dir . --pin"
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./lib/index.d.mts",
18
+ "default": "./lib/index.mjs"
19
+ },
20
+ "require": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.cjs"
23
+ }
24
+ },
25
+ "./alpha": {
26
+ "import": {
27
+ "types": "./lib/register-collection-alpha.d.mts",
28
+ "default": "./lib/index.mjs"
29
+ },
30
+ "require": {
31
+ "types": "./dist/register-collection-alpha.d.ts",
32
+ "default": "./dist/index.cjs"
33
+ }
34
+ },
35
+ "./beta": {
36
+ "import": {
37
+ "types": "./lib/register-collection-beta.d.mts",
38
+ "default": "./lib/index.mjs"
39
+ },
40
+ "require": {
41
+ "types": "./dist/register-collection-beta.d.ts",
42
+ "default": "./dist/index.cjs"
43
+ }
44
+ },
45
+ "./internal": {
46
+ "import": {
47
+ "types": "./lib/index.d.mts",
48
+ "default": "./lib/index.mjs"
49
+ },
50
+ "require": {
51
+ "types": "./dist/index.d.ts",
52
+ "default": "./dist/index.cjs"
53
+ }
54
+ },
55
+ "./public": {
56
+ "import": {
57
+ "types": "./lib/register-collection-public.d.mts",
58
+ "default": "./lib/index.mjs"
59
+ },
60
+ "require": {
61
+ "types": "./dist/register-collection-public.d.ts",
62
+ "default": "./dist/index.cjs"
63
+ }
64
+ }
40
65
  },
41
- "nyc": {
66
+ "main": "dist/index.cjs",
67
+ "module": "lib/index.mjs",
68
+ "types": "dist/index.d.ts",
69
+ "c8": {
42
70
  "all": true,
43
71
  "cache-dir": "nyc/.cache",
44
72
  "exclude": [
45
- "src/test/**/*.ts",
46
- "dist/test/**/*.js"
73
+ "src/test/**/*.*ts",
74
+ "dist/test/**/*.*js"
47
75
  ],
48
76
  "exclude-after-remap": false,
49
77
  "include": [
50
- "src/**/*.ts",
51
- "dist/**/*.js"
78
+ "src/**/*.*ts",
79
+ "dist/**/*.*js"
52
80
  ],
53
81
  "report-dir": "nyc/report",
54
82
  "reporter": [
@@ -59,40 +87,85 @@
59
87
  "temp-directory": "nyc/.nyc_output"
60
88
  },
61
89
  "dependencies": {
62
- "@fluidframework/common-utils": "^0.32.1",
63
- "@fluidframework/core-interfaces": "1.4.0-121020",
64
- "@fluidframework/datastore-definitions": "1.4.0-121020",
65
- "@fluidframework/protocol-base": "^0.1036.5000",
66
- "@fluidframework/protocol-definitions": "^0.1028.2000",
67
- "@fluidframework/runtime-definitions": "1.4.0-121020",
68
- "@fluidframework/shared-object-base": "1.4.0-121020"
90
+ "@fluid-internal/client-utils": "2.0.0-dev-rc.1.0.0.225277",
91
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.1.0.0.225277",
92
+ "@fluidframework/core-utils": "2.0.0-dev-rc.1.0.0.225277",
93
+ "@fluidframework/datastore-definitions": "2.0.0-dev-rc.1.0.0.225277",
94
+ "@fluidframework/driver-utils": "2.0.0-dev-rc.1.0.0.225277",
95
+ "@fluidframework/protocol-definitions": "^3.1.0-223007",
96
+ "@fluidframework/runtime-definitions": "2.0.0-dev-rc.1.0.0.225277",
97
+ "@fluidframework/shared-object-base": "2.0.0-dev-rc.1.0.0.225277"
69
98
  },
70
99
  "devDependencies": {
71
- "@fluid-internal/test-dds-utils": "1.4.0-121020",
72
- "@fluidframework/build-common": "^0.24.0",
73
- "@fluidframework/build-tools": "^0.6.0-110101",
74
- "@fluidframework/eslint-config-fluid": "^0.28.2000",
75
- "@fluidframework/mocha-test-setup": "1.4.0-121020",
76
- "@fluidframework/register-collection-previous": "npm:@fluidframework/register-collection@1.3.1",
77
- "@fluidframework/test-runtime-utils": "1.4.0-121020",
78
- "@microsoft/api-extractor": "^7.22.2",
79
- "@rushstack/eslint-config": "^2.5.1",
100
+ "@arethetypeswrong/cli": "^0.13.3",
101
+ "@fluid-private/test-dds-utils": "2.0.0-dev-rc.1.0.0.225277",
102
+ "@fluid-tools/build-cli": "0.29.0-222379",
103
+ "@fluidframework/build-common": "^2.0.3",
104
+ "@fluidframework/build-tools": "0.29.0-222379",
105
+ "@fluidframework/eslint-config-fluid": "^3.1.0",
106
+ "@fluidframework/mocha-test-setup": "2.0.0-dev-rc.1.0.0.225277",
107
+ "@fluidframework/register-collection-previous": "npm:@fluidframework/register-collection@2.0.0-internal.8.0.0",
108
+ "@fluidframework/test-runtime-utils": "2.0.0-dev-rc.1.0.0.225277",
109
+ "@microsoft/api-extractor": "^7.38.3",
80
110
  "@types/mocha": "^9.1.1",
81
- "@types/node": "^14.18.0",
82
- "concurrently": "^6.2.0",
83
- "copyfiles": "^2.1.0",
84
- "cross-env": "^7.0.2",
85
- "eslint": "~8.6.0",
86
- "mocha": "^10.0.0",
87
- "nyc": "^15.0.0",
88
- "rimraf": "^2.6.2",
89
- "typescript": "~4.5.5",
90
- "typescript-formatter": "7.1.0"
111
+ "@types/node": "^18.19.0",
112
+ "c8": "^8.0.1",
113
+ "copyfiles": "^2.4.1",
114
+ "cross-env": "^7.0.3",
115
+ "eslint": "~8.50.0",
116
+ "mocha": "^10.2.0",
117
+ "mocha-json-output-reporter": "^2.0.1",
118
+ "mocha-multi-reporters": "^1.5.1",
119
+ "moment": "^2.21.0",
120
+ "prettier": "~3.0.3",
121
+ "replace-in-file": "^6.3.5",
122
+ "rimraf": "^4.4.0",
123
+ "tsc-multi": "^1.1.0",
124
+ "typescript": "~5.1.6"
125
+ },
126
+ "fluidBuild": {
127
+ "tasks": {
128
+ "build:docs": {
129
+ "dependsOn": [
130
+ "...",
131
+ "api-extractor:commonjs",
132
+ "api-extractor:esnext"
133
+ ],
134
+ "script": false
135
+ }
136
+ }
91
137
  },
92
138
  "typeValidation": {
93
- "version": "1.4.0",
94
- "baselineRange": "~1.3.0",
95
- "baselineVersion": "1.3.1",
96
139
  "broken": {}
140
+ },
141
+ "scripts": {
142
+ "api": "fluid-build . --task api",
143
+ "api-extractor:commonjs": "api-extractor run --local",
144
+ "api-extractor:esnext": "api-extractor run --config ./api-extractor-esm.json",
145
+ "build": "fluid-build . --task build",
146
+ "build:commonjs": "fluid-build . --task commonjs",
147
+ "build:compile": "fluid-build . --task compile",
148
+ "build:docs": "fluid-build . --task api",
149
+ "build:esnext": "tsc-multi --config ../../../common/build/build-common/tsc-multi.esm.json",
150
+ "build:genver": "gen-version",
151
+ "build:test": "tsc-multi --config ./tsc-multi.test.json",
152
+ "check:are-the-types-wrong": "attw --pack . --entrypoints .",
153
+ "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
154
+ "ci:build:docs": "api-extractor run",
155
+ "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
156
+ "eslint": "eslint --format stylish src",
157
+ "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
158
+ "format": "npm run prettier:fix",
159
+ "lint": "npm run prettier && npm run check:release-tags && npm run eslint",
160
+ "lint:fix": "npm run prettier:fix && npm run eslint:fix",
161
+ "prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
162
+ "prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
163
+ "test": "npm run test:mocha",
164
+ "test:coverage": "c8 npm test",
165
+ "test:mocha": "mocha --ignore \"dist/test/types/*\" --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup",
166
+ "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
167
+ "tsc": "tsc-multi --config ../../../common/build/build-common/tsc-multi.cjs.json",
168
+ "typetests:gen": "fluid-type-test-generator",
169
+ "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
97
170
  }
98
- }
171
+ }
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ module.exports = {
7
+ ...require("@fluidframework/build-common/prettier.config.cjs"),
8
+ };