Skip to content

Commit a1ed3f0

Browse files
committed
fix: angular package format in lib making public the private packages us
ing ng-packagr
1 parent 0b793fc commit a1ed3f0

18 files changed

Lines changed: 75 additions & 90 deletions

package-lock.json

Lines changed: 32 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"lib": {
3+
"entryFile": "src/index.ts"
4+
}
5+
}
6+

packages/sanity/channels/project.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,5 @@
44
"sourceRoot": "packages/sanity/channels/src",
55
"projectType": "library",
66
"tags": [],
7-
"// targets": "to see all targets run: nx show project channels --web",
8-
"targets": {
9-
"build": {
10-
"executor": "@nx/js:tsc",
11-
"outputs": ["{options.outputPath}"],
12-
"options": {
13-
"outputPath": "dist/packages/channels",
14-
"main": "packages/sanity/channels/src/index.ts",
15-
"tsConfig": "packages/sanity/channels/tsconfig.lib.json",
16-
"assets": []
17-
}
18-
}
19-
}
7+
"targets": {}
208
}

packages/sanity/channels/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc",
4+
"outDir": "../../../dist/out-tsc",
55
"declaration": true,
66
"types": ["node"]
77
},

packages/sanity/ng-package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/packages/sanity",
4+
"deleteDestPath": false,
45
"lib": {
56
"entryFile": "src/index.ts"
67
},
78
"allowedNonPeerDependencies": [
8-
"@portabletext/toolkit",
9-
"@portabletext/types",
10-
"@sanity/image-url",
119
"@vercel/stega",
1210
"lodash-es",
1311
"lru-cache",

packages/sanity/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,18 @@
2525
"peerDependencies": {
2626
"@angular/common": "^18.0.0",
2727
"@angular/core": "^18.0.0",
28-
"@sanity/client": "^6.21.3"
28+
"@portabletext/toolkit": "^2.0.15",
29+
"@portabletext/types": "^2.0.13",
30+
"@sanity/client": "^6.21.3",
31+
"@sanity/image-url": "^1.0.2",
32+
"@sanity/visual-editing": "^2.1.10"
2933
},
3034
"peerDependenciesMeta": {
3135
"@sanity/client": {
3236
"optional": true
3337
}
3438
},
3539
"dependencies": {
36-
"@portabletext/toolkit": "^2.0.15",
37-
"@portabletext/types": "^2.0.13",
38-
"@sanity/image-url": "^1.0.2",
3940
"@vercel/stega": "0.1.2",
4041
"lodash-es": "^4.17.21",
4142
"lru-cache": "^11.0.0",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"lib": {
3+
"entryFile": "src/index.ts"
4+
}
5+
}

packages/sanity/preview-kit-compat/project.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,5 @@
44
"sourceRoot": "packages/sanity/preview-kit-compat/src",
55
"projectType": "library",
66
"tags": [],
7-
"// targets": "to see all targets run: nx show project preview-kit-compat --web",
8-
"targets": {
9-
"build": {
10-
"executor": "@nx/js:tsc",
11-
"outputs": ["{options.outputPath}"],
12-
"options": {
13-
"outputPath": "dist/packages/preview-kit-compat",
14-
"main": "packages/sanity/preview-kit-compat/src/index.ts",
15-
"tsConfig": "packages/sanity/preview-kit-compat/tsconfig.lib.json",
16-
"assets": []
17-
}
18-
}
19-
}
7+
"targets": {}
208
}

packages/sanity/preview-kit-compat/src/document-in-use.service.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ import { BehaviorSubject, combineLatest } from 'rxjs';
66
import { distinctUntilChanged, filter } from 'rxjs/operators';
77
import type { ContentSourceMapDocuments } from '@sanity/client/csm';
88

9-
import { type ChannelsNode, createChannelsNode } from '@repo/channels';
9+
import {
10+
type ChannelsNode,
11+
createChannelsNode,
12+
} from '@limitless-angular/sanity/channels';
1013
import type {
1114
PresentationMsg,
1215
PreviewKitMsg,
1316
VisualEditingConnectionIds,
14-
} from '@repo/visual-editing-helpers';
17+
} from '@limitless-angular/sanity/visual-editing-helpers';
1518

1619
type UseDocumentsInUseConfig = { projectId: string; dataset: string };
1720

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './document-in-use.service'
1+
export * from './document-in-use.service';

0 commit comments

Comments
 (0)