Skip to content

Commit b58aad0

Browse files
authored
test(client): enable npm-package-exports-apis-linted policy (#21405)
1. apply npm-package-exports-apis-linted policy with --fix 2. suppress checks where there are active violations 3. task cleanup before check:release-tags removal 4. remove check:release-tags from packages with check:exports:bundle-release-tags 5. remove check:release-tags to with check:exports where no check:exports:bundle-release-tags (private packages where policy does not apply) [AB#8142](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/8142)
1 parent 5a8502d commit b58aad0

File tree

442 files changed

+2573
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

442 files changed

+2573
-109
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/legacy.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/legacy.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/public.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/public.d.ts"
5+
}

azure/packages/azure-service-utils/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@
6060
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
6161
"check:are-the-types-wrong": "attw --pack .",
6262
"check:biome": "biome check . --formatter-enabled=true",
63+
"check:exports": "concurrently \"npm:check:exports:*\"",
64+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
65+
"check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json",
66+
"check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json",
67+
"check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json",
68+
"check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
6369
"check:format": "npm run check:prettier",
6470
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
65-
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
6671
"ci:build:docs": "api-extractor run",
6772
"clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
6873
"eslint": "eslint --format stylish src",
@@ -93,6 +98,7 @@
9398
"@microsoft/api-extractor": "^7.45.1",
9499
"@types/jsrsasign": "^10.5.12",
95100
"@types/uuid": "^9.0.2",
101+
"concurrently": "^8.2.1",
96102
"copyfiles": "^2.4.1",
97103
"eslint": "~8.55.0",
98104
"eslint-config-prettier": "~9.0.0",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

examples/data-objects/table-document/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
3636
"check:are-the-types-wrong": "attw --pack .",
3737
"check:biome": "biome check . --formatter-enabled=true",
38+
"check:exports": "echo skip concurrently \"npm:check:exports:*\"",
39+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
40+
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
41+
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
3842
"check:format": "npm run check:prettier",
3943
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
4044
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc _api-extractor-temp",
@@ -95,10 +99,12 @@
9599
"@fluidframework/eslint-config-fluid": "^5.3.0",
96100
"@fluidframework/runtime-utils": "workspace:~",
97101
"@fluidframework/test-utils": "workspace:~",
102+
"@microsoft/api-extractor": "^7.45.1",
98103
"@types/debug": "^4.1.5",
99104
"@types/mocha": "^9.1.1",
100105
"@types/node": "^18.19.0",
101106
"c8": "^8.0.1",
107+
"concurrently": "^8.2.1",
102108
"copyfiles": "^2.4.1",
103109
"cross-env": "^7.0.3",
104110
"eslint": "~8.55.0",

examples/utils/example-utils/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"build:esnext": "tsc --project ./tsconfig.json",
3535
"check:are-the-types-wrong": "attw --pack .",
3636
"check:biome": "biome check . --formatter-enabled=true",
37+
"check:exports": "api-extractor run --config ./api-extractor-lint.json",
3738
"check:format": "npm run check:prettier",
3839
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
39-
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
4040
"ci:build:docs": "api-extractor run",
4141
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
4242
"eslint": "eslint --format stylish src",
@@ -94,6 +94,13 @@
9494
"rimraf": "^4.4.0",
9595
"typescript": "~5.4.5"
9696
},
97+
"fluidBuild": {
98+
"tasks": {
99+
"check:exports": [
100+
"build:esnext"
101+
]
102+
}
103+
},
97104
"typeValidation": {
98105
"disabled": true,
99106
"broken": {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

experimental/dds/attributable-map/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@
3838
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
3939
"check:are-the-types-wrong": "attw --pack .",
4040
"check:biome": "biome check . --formatter-enabled=true",
41+
"check:exports": "concurrently \"npm:check:exports:*\"",
42+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
43+
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
44+
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
4145
"check:format": "npm run check:prettier",
4246
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
43-
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
4447
"ci:build:docs": "api-extractor run",
4548
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
4649
"eslint": "eslint --format stylish src",
@@ -112,6 +115,7 @@
112115
"@types/node": "^18.19.0",
113116
"@types/path-browserify": "^1.0.0",
114117
"c8": "^8.0.1",
118+
"concurrently": "^8.2.1",
115119
"copyfiles": "^2.4.1",
116120
"cross-env": "^7.0.3",
117121
"eslint": "~8.55.0",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

experimental/dds/ot/ot/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@
3838
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
3939
"check:are-the-types-wrong": "attw --pack .",
4040
"check:biome": "biome check . --formatter-enabled=true",
41+
"check:exports": "concurrently \"npm:check:exports:*\"",
42+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
43+
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
44+
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
4145
"check:format": "npm run check:prettier",
4246
"check:prettier": "prettier --check . --cache --ignore-path ../../../../.prettierignore",
43-
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
4447
"ci:build:docs": "api-extractor run",
4548
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
4649
"eslint": "eslint --format stylish src",
@@ -102,6 +105,7 @@
102105
"@types/node": "^18.19.0",
103106
"best-random": "^1.0.0",
104107
"c8": "^8.0.1",
108+
"concurrently": "^8.2.1",
105109
"copyfiles": "^2.4.1",
106110
"cross-env": "^7.0.3",
107111
"eslint": "~8.55.0",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

experimental/dds/ot/sharejs/json1/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@
3838
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
3939
"check:are-the-types-wrong": "attw --pack .",
4040
"check:biome": "biome check . --formatter-enabled=true",
41+
"check:exports": "concurrently \"npm:check:exports:*\"",
42+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
43+
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
44+
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
4145
"check:format": "npm run check:prettier",
4246
"check:prettier": "prettier --check . --cache --ignore-path ../../../../../.prettierignore",
43-
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
4447
"ci:build:docs": "api-extractor run",
4548
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
4649
"dev": "npm run tsc && concurrently \"npm run tsc -- --watch\" \"npm run build:test -- --watch\"",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

experimental/dds/sequence-deprecated/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@
3838
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
3939
"check:are-the-types-wrong": "attw --pack .",
4040
"check:biome": "biome check . --formatter-enabled=true",
41+
"check:exports": "concurrently \"npm:check:exports:*\"",
42+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
43+
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
44+
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
4145
"check:format": "npm run check:prettier",
4246
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
43-
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
4447
"ci:build:docs": "api-extractor run",
4548
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
4649
"eslint": "eslint --format stylish src",
@@ -103,6 +106,7 @@
103106
"@types/mocha": "^9.1.1",
104107
"@types/node": "^18.19.0",
105108
"c8": "^8.0.1",
109+
"concurrently": "^8.2.1",
106110
"copyfiles": "^2.4.1",
107111
"cross-env": "^7.0.3",
108112
"diff": "^3.5.0",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/EditLog.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/EditLog.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

experimental/dds/tree/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,14 @@
4343
"build:esnext": "tsc --project ./tsconfig.esnext.json",
4444
"check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./test/EditLog",
4545
"check:biome": "biome check . --formatter-enabled=true",
46+
"check:exports": "concurrently \"npm:check:exports:*\"",
47+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
48+
"check:exports:cjs:EditLog": "echo AB#8147 skip api-extractor run --config api-extractor/api-extractor-lint-EditLog.cjs.json",
49+
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
50+
"check:exports:esm:EditLog": "echo AB#8147 skip api-extractor run --config api-extractor/api-extractor-lint-EditLog.esm.json",
51+
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
4652
"check:format": "npm run check:prettier",
4753
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
48-
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
4954
"ci:build:docs": "api-extractor run",
5055
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
5156
"eslint": "eslint src",
@@ -109,6 +114,7 @@
109114
"@types/uuid": "^9.0.2",
110115
"c8": "^8.0.1",
111116
"chai": "^4.2.0",
117+
"concurrently": "^8.2.1",
112118
"copyfiles": "^2.4.1",
113119
"cross-env": "^7.0.3",
114120
"easy-table": "^1.1.1",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

experimental/framework/data-objects/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
"build:esnext": "tsc --project ./tsconfig.json",
3535
"check:are-the-types-wrong": "attw --pack .",
3636
"check:biome": "biome check . --formatter-enabled=true",
37+
"check:exports": "concurrently \"npm:check:exports:*\"",
38+
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
39+
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
40+
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
3741
"check:format": "npm run check:prettier",
3842
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
3943
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
@@ -65,6 +69,7 @@
6569
"@fluidframework/eslint-config-fluid": "^5.3.0",
6670
"@microsoft/api-extractor": "^7.45.1",
6771
"@types/node": "^18.19.0",
72+
"concurrently": "^8.2.1",
6873
"copyfiles": "^2.4.1",
6974
"cross-env": "^7.0.3",
7075
"eslint": "~8.55.0",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-lint.entrypoint.json",
4+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts"
5+
}

0 commit comments

Comments
 (0)