Skip to content

Commit 4c8e3f0

Browse files
committed
refactor: consolidate @driftdev/spec into @driftdev/sdk
1 parent 0845596 commit 4c8e3f0

29 files changed

+73
-183
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"commit": false,
55
"fixed": [],
66
"linked": [
7-
["@driftdev/sdk", "@driftdev/cli", "@driftdev/spec"]
7+
["@driftdev/sdk", "@driftdev/cli"]
88
],
99
"access": "public",
1010
"baseBranch": "main",

.github/workflows/drift.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252

5353
- name: Scan thresholds
5454
run: |
55-
bun run packages/cli/src/drift.ts scan --cwd packages/spec --min 10
5655
bun run packages/cli/src/drift.ts scan --cwd packages/cli --min 60
5756
bun run packages/cli/src/drift.ts scan --cwd packages/sdk --min 80
5857

bun.lock

Lines changed: 5 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
"apps/*"
88
],
99
"scripts": {
10-
"build": "bun run build:spec && bun run build:sdk && bun run build:cli",
11-
"build:spec": "cd packages/spec && bun run build",
10+
"build": "bun run build:sdk && bun run build:cli",
1211
"build:sdk": "cd packages/sdk && bun run build",
1312
"build:cli": "cd packages/cli && bun run build",
14-
"dev": "bun run --parallel dev:spec dev:sdk dev:cli",
15-
"dev:spec": "cd packages/spec && bun run dev",
13+
"dev": "bun run --parallel dev:sdk dev:cli",
1614
"dev:sdk": "cd packages/sdk && bun run dev",
1715
"dev:cli": "cd packages/cli && bun run dev",
1816
"lint": "bunx biome check packages/ apps/",

packages/cli/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @doccov/cli
22

3+
## 0.41.0
4+
5+
### Patch Changes
6+
7+
- Consolidate @driftdev/spec into @driftdev/sdk. Spec types, constants, and JSON schema validation are now exported directly from the SDK. The @driftdev/spec package is removed.
8+
- Updated dependencies
9+
- @driftdev/sdk@0.41.0
10+
311
## 0.40.0
412

513
### Minor Changes

packages/cli/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@driftdev/cli",
3-
"version": "0.40.0",
3+
"version": "0.41.0",
44
"description": "Drift CLI - Documentation coverage and drift detection for TypeScript",
55
"keywords": [
66
"typescript",
@@ -43,8 +43,7 @@
4343
"dist"
4444
],
4545
"dependencies": {
46-
"@driftdev/sdk": "^0.39.0",
47-
"@driftdev/spec": "^0.36.0",
46+
"@driftdev/sdk": "^0.41.0",
4847
"@openpkg-ts/sdk": "^0.37.0",
4948
"@openpkg-ts/spec": "^0.37.0",
5049
"chalk": "^5.4.1",

packages/sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @doccov/sdk
22

3+
## 0.41.0
4+
5+
### Minor Changes
6+
7+
- Consolidate @driftdev/spec into @driftdev/sdk. Spec types, constants, and JSON schema validation are now exported directly from the SDK. The @driftdev/spec package is removed.
8+
39
## 0.39.0
410

511
### Patch Changes

packages/sdk/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@driftdev/sdk",
3-
"version": "0.39.0",
3+
"version": "0.41.0",
44
"description": "Drift SDK - Documentation coverage and drift detection for TypeScript",
55
"keywords": [
66
"typescript",
@@ -47,7 +47,8 @@
4747
"dist"
4848
],
4949
"dependencies": {
50-
"@driftdev/spec": "^0.36.0",
50+
"ajv": "^8.17.1",
51+
"ajv-formats": "^3.0.1",
5152
"@openpkg-ts/sdk": "^0.37.0",
5253
"@openpkg-ts/spec": "^0.37.0",
5354
"@vercel/sandbox": "^1.0.3",

packages/spec/schemas/v1.0.0/drift.schema.json renamed to packages/sdk/schemas/v1.0.0/drift.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://unpkg.com/@driftdev/spec/schemas/v1.0.0/drift.schema.json",
3+
"$id": "https://unpkg.com/@driftdev/sdk/schemas/v1.0.0/drift.schema.json",
44
"title": "Drift Specification",
55
"description": "Documentation coverage analysis specification",
66
"type": "object",

packages/sdk/src/analysis/batch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { DriftSpec } from '@driftdev/spec';
1+
import type { DriftSpec } from '../spec';
22
import type { OpenPkg } from '@openpkg-ts/spec';
33

44
/**

0 commit comments

Comments
 (0)