@mitralab.io/platform-sdk 1.0.8 → 1.1.0-beta.0

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.
package/package.json CHANGED
@@ -1,20 +1,34 @@
1
1
  {
2
2
  "name": "@mitralab.io/platform-sdk",
3
- "version": "1.0.8",
3
+ "version": "1.1.0-beta.0",
4
4
  "description": "JavaScript/TypeScript SDK for building apps on the Mitra Platform",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
8
10
  "exports": {
9
11
  ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.js"
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.cjs"
19
+ }
13
20
  }
14
21
  },
15
22
  "files": [
16
- "dist"
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE",
26
+ "CHANGELOG.md"
17
27
  ],
28
+ "publishConfig": {
29
+ "access": "public",
30
+ "registry": "https://registry.npmjs.org"
31
+ },
18
32
  "scripts": {
19
33
  "build": "tsup src/index.ts --format cjs,esm --dts --clean",
20
34
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
@@ -22,9 +36,11 @@
22
36
  "typecheck": "tsc --noEmit",
23
37
  "test": "vitest run --coverage",
24
38
  "test:watch": "vitest",
39
+ "check:package-types": "npx --yes @arethetypeswrong/cli@0.18.5 --pack .",
40
+ "pack:check": "npm pack --dry-run",
25
41
  "smoke:package": "node scripts/smoke-package.mjs",
26
- "check": "npm run lint && npm run typecheck && npm test && npm run build && npm run smoke:package",
27
- "prepublishOnly": "npm run check"
42
+ "check": "npm run lint && npm run typecheck && npm test && npm run build && npm run pack:check && npm run smoke:package",
43
+ "prepublishOnly": "npm run check && npm run check:package-types"
28
44
  },
29
45
  "keywords": [
30
46
  "mitra",
@@ -46,7 +62,8 @@
46
62
  "url": "https://github.com/mitralab-dev/mitra-platform-sdk/issues"
47
63
  },
48
64
  "dependencies": {
49
- "@mitralab.io/sdk-core": "^0.1.0"
65
+ "@mitralab.io/sdk-core": "0.2.0-beta.0",
66
+ "mitra-interactions-sdk": "1.0.60-beta.48"
50
67
  },
51
68
  "devDependencies": {
52
69
  "@eslint/js": "^9.39.1",
@@ -64,6 +81,7 @@
64
81
  "node": ">=18.0.0"
65
82
  },
66
83
  "overrides": {
84
+ "esbuild": "^0.25.0",
67
85
  "rollup": "^4.59.0",
68
86
  "test-exclude": "7.0.1"
69
87
  }