Skip to content

Commit b3931fe

Browse files
committed
Merge remote-tracking branch 'upstream/main' into add-release-config
2 parents 6d7f952 + 62984bb commit b3931fe

21 files changed

Lines changed: 402 additions & 68 deletions

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,10 @@ jobs:
3939

4040
- name: 💪 Type check
4141
run: pnpm -r test:typecheck
42+
43+
- name: 📦 Build
44+
run: pnpm -r build
45+
46+
# - name: 🚢 Continuous Release
47+
# run: pnpm dlx pkg-pr-new publish './packages/core'
48+
# if: github.event_name == 'pull_request'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"url": "git+https://github.com/tsky-dev/tsky.git"
1111
},
1212
"scripts": {
13+
"build": "pnpm run --filter tsky build",
1314
"docs:dev": "pnpm run --filter tsky-docs dev",
1415
"docs:build": "pnpm run --filter tsky-docs build",
1516
"docs:preview": "pnpm run --filter tsky-docs preview",

packages/core/package.json

Lines changed: 41 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
1-
{
2-
"name": "tsky",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"license": "MIT",
6-
"exports": {
7-
".": {
8-
"default": {
9-
"types": "./dist/index.d.ts",
10-
"import": "./dist/index.js"
11-
}
12-
}
13-
},
14-
"module": "dist/index.js",
15-
"types": "dist/index.d.ts",
16-
"files": ["dist"],
17-
"scripts": {
18-
"build": "tsc",
19-
"lint": "eslint ./src",
20-
"lint:fix": "eslint ./src --fix",
21-
"test": "vitest",
22-
"test:typescript": "tsc --noEmit"
23-
},
24-
"devDependencies": {
25-
"@atproto/api": "^0.13.18",
26-
"globals": "^15.12.0",
27-
"tsx": "^4.19.2",
28-
"typescript": "^5.7.2",
29-
"vitest": "^2.1.6"
30-
}
31-
}
1+
{
2+
"name": "tsky",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"license": "MIT",
6+
"exports": {
7+
".": {
8+
"import": {
9+
"types": "./dist/index.d.ts",
10+
"default": "./dist/index.js"
11+
},
12+
"require": {
13+
"types": "./dist/index.d.cts",
14+
"default": "./dist/index.cjs"
15+
}
16+
}
17+
},
18+
"main": "dist/index.cjs",
19+
"module": "dist/index.js",
20+
"types": "dist/index.d.ts",
21+
"files": [
22+
"dist"
23+
],
24+
"scripts": {
25+
"build": "pkgroll",
26+
"lint": "eslint ./src",
27+
"lint:fix": "eslint ./src --fix",
28+
"test": "vitest",
29+
"test:typescript": "tsc --noEmit"
30+
},
31+
"dependencies": {
32+
"@atproto/api": "^0.13.18"
33+
},
34+
"devDependencies": {
35+
"globals": "^15.12.0",
36+
"pkgroll": "^2.5.1",
37+
"tsx": "^4.19.2",
38+
"typescript": "^5.7.2",
39+
"vitest": "^2.1.6"
40+
}
41+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
AppBskyGraphUnmuteActorList,
66
AppBskyNS,
77
} from '@atproto/api';
8-
import { BaseActor } from './BaseActor';
8+
import { BaseActor } from './baseActor';
99

1010
export class Actor extends BaseActor {
1111
/**
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type {
55
AppBskyGraphGetRelationships,
66
AppBskyNS,
77
} from '@atproto/api';
8-
import { Paginator } from '~/tsky/Paginator';
9-
import { Thread } from './Thread';
8+
import { Paginator } from '~/tsky/paginator';
9+
import { Thread } from './thread';
1010

1111
export class BaseActor {
1212
constructor(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
AppBskyFeedSendInteractions,
99
AppBskyNS,
1010
} from '@atproto/api';
11-
import { Paginator } from '~/tsky/Paginator';
11+
import { Paginator } from '~/tsky/paginator';
1212

1313
export class Feed {
1414
constructor(private instance: AppBskyNS) {}

packages/core/src/bsky/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export * from './Actor';
2-
export * from './BaseActor';
3-
export * from './User';
4-
export * from './Suggestions';
5-
export * from './Thread';
6-
export * from './Feed';
7-
export * from './List';
8-
export * from './Post';
9-
export * from './Preferences';
10-
export * from './StarterPack';
11-
export * from './Video';
1+
export * from './actor';
2+
export * from './baseActor';
3+
export * from './user';
4+
export * from './suggestions';
5+
export * from './thread';
6+
export * from './feed';
7+
export * from './list';
8+
export * from './post';
9+
export * from './preferences';
10+
export * from './starterPack';
11+
export * from './video';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
AppBskyGraphGetList,
44
AppBskyNS,
55
} from '@atproto/api';
6-
import { Paginator } from '~/tsky/Paginator';
6+
import { Paginator } from '~/tsky/paginator';
77

88
export class BskyList {
99
constructor(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
AppBskyFeedSearchPosts,
88
AppBskyNS,
99
} from '@atproto/api';
10-
import { Paginator } from '~/tsky/Paginator';
10+
import { Paginator } from '~/tsky/paginator';
1111

1212
export class Post {
1313
constructor(private instance: AppBskyNS) {}

0 commit comments

Comments
 (0)