@antelopejs/interface-dms-saas 0.0.2 → 0.1.1

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 (2) hide show
  1. package/README.md +6 -7
  2. package/package.json +9 -35
package/README.md CHANGED
@@ -40,12 +40,11 @@ Their own subpaths stay the direct route to the same symbols. `./db` is the one
40
40
  surface the root entry leaves out: importing it registers the SaaS tables, and a
41
41
  consumer that only wants types should not pay for that.
42
42
 
43
- The `exports` map also carries a types-only `./dist/...` twin of every subpath.
44
- Nothing should import those: they exist because TypeScript's declaration emit
45
- rewrites `<pkg>/db/tables/plans.table` into the `dist` path it resolved through
46
- `typesVersions`, and an exports-aware consumer of the emitted `.d.ts` has to be
47
- able to resolve that path back.
43
+ Subpaths resolve through the `exports` map only, so consumers must compile with
44
+ `moduleResolution` set to `bundler`, `node16` or `nodenext`; the legacy `node`
45
+ (node10) mode is not supported.
48
46
 
49
47
  This package is released on its own workflow and must be published before the
50
- runtime module: `@antelopejs/dms-saas` depends on it with `workspace:*`, which
51
- pnpm rewrites to the released version on publish.
48
+ runtime module: `@antelopejs/dms-saas` depends on it through
49
+ `>=<interface version> <1.0.0`, a range that only resolves once this package is
50
+ released.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/interface-dms-saas",
3
- "version": "0.0.2",
3
+ "version": "0.1.1",
4
4
  "description": "Public interfaces for the DMS SaaS module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -9,24 +9,13 @@
9
9
  },
10
10
  "files": [
11
11
  "dist",
12
+ "!dist/.tsbuildinfo",
12
13
  "package.json",
13
14
  "README.md",
14
15
  "LICENSE"
15
16
  ],
16
17
  "main": "dist/index.js",
17
18
  "types": "dist/index.d.ts",
18
- "typesVersions": {
19
- "*": {
20
- "dist/*": [
21
- "dist/*",
22
- "dist/*/index.d.ts"
23
- ],
24
- "*": [
25
- "dist/*",
26
- "dist/*/index.d.ts"
27
- ]
28
- }
29
- },
30
19
  "exports": {
31
20
  ".": {
32
21
  "types": "./dist/index.d.ts",
@@ -45,21 +34,6 @@
45
34
  "types": "./dist/db/tables/index.d.ts",
46
35
  "default": "./dist/db/tables/index.js"
47
36
  },
48
- "./dist": {
49
- "types": "./dist/index.d.ts"
50
- },
51
- "./dist/db": {
52
- "types": "./dist/db/index.d.ts"
53
- },
54
- "./dist/db/models": {
55
- "types": "./dist/db/models/index.d.ts"
56
- },
57
- "./dist/db/tables": {
58
- "types": "./dist/db/tables/index.d.ts"
59
- },
60
- "./dist/*": {
61
- "types": "./dist/*.d.ts"
62
- },
63
37
  "./*": {
64
38
  "types": "./dist/*.d.ts",
65
39
  "default": "./dist/*.js"
@@ -71,12 +45,12 @@
71
45
  "registry": "https://registry.npmjs.org/"
72
46
  },
73
47
  "scripts": {
74
- "build": "rimraf dist && tsc -p tsconfig.build.json",
48
+ "build": "rimraf dist && tsc",
75
49
  "lint": "oxlint && oxfmt --check .",
76
50
  "lint:fix": "oxlint --fix --max-warnings=1000000 && oxfmt .",
77
51
  "format": "oxfmt .",
78
- "typecheck": "tsc -p tsconfig.json",
79
- "check:package-contract": "node scripts/check-package-contract.mjs",
52
+ "typecheck": "tsc --noEmit",
53
+ "check:exports": "node scripts/check-exports.mjs",
80
54
  "knip": "knip --dependencies",
81
55
  "knip:all": "knip",
82
56
  "release": "pnpm run lint && pnpm run build && release-it",
@@ -84,10 +58,10 @@
84
58
  },
85
59
  "dependencies": {
86
60
  "@antelopejs/interface-data-api": ">=0.1.9 <1.0.0",
87
- "@antelopejs/interface-dms": ">=0.0.1 <1.0.0"
61
+ "@antelopejs/interface-dms": ">=0.2.0 <1.0.0"
88
62
  },
89
63
  "devDependencies": {
90
- "@antelopejs/interface-core": "^0.0.12",
64
+ "@antelopejs/interface-core": ">=0.1.1 <1.0.0",
91
65
  "@antelopejs/interface-database": ">=0.1.7 <1.0.0",
92
66
  "@antelopejs/interface-database-decorators": ">=0.1.6 <1.0.0",
93
67
  "@types/node": "^24.0.0",
@@ -98,10 +72,10 @@
98
72
  "release-it": "^19.2.4",
99
73
  "release-it-changelogen": "^0.1.0",
100
74
  "rimraf": "^6.1.3",
101
- "typescript": "^5.9.3"
75
+ "typescript": "^6.0.3"
102
76
  },
103
77
  "peerDependencies": {
104
- "@antelopejs/interface-core": ">=0.0.12 <1.0.0",
78
+ "@antelopejs/interface-core": ">=0.1.1 <1.0.0",
105
79
  "@antelopejs/interface-database": ">=0.1.7 <1.0.0",
106
80
  "@antelopejs/interface-database-decorators": ">=0.1.6 <1.0.0"
107
81
  },