@semiont/content 0.5.3 → 0.5.5

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/dist/index.d.ts +2 -1
  2. package/package.json +6 -4
package/dist/index.d.ts CHANGED
@@ -178,4 +178,5 @@ declare function calculateChecksum(content: string | Buffer): string;
178
178
  */
179
179
  declare function verifyChecksum(content: string | Buffer, checksum: string): boolean;
180
180
 
181
- export { ChecksumMismatchError, type StoredResource, WorkingTreeStore, calculateChecksum, deriveStorageUri, getExtensionForMimeType, hasKnownExtension, verifyChecksum };
181
+ export { ChecksumMismatchError, WorkingTreeStore, calculateChecksum, deriveStorageUri, getExtensionForMimeType, hasKnownExtension, verifyChecksum };
182
+ export type { StoredResource };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semiont/content",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "type": "module",
5
5
  "description": "Content-addressed storage for resource representations",
6
6
  "main": "./dist/index.js",
@@ -16,9 +16,9 @@
16
16
  "README.md"
17
17
  ],
18
18
  "scripts": {
19
- "build": "npm run typecheck && tsup",
19
+ "build": "npm run typecheck && tsup && tsc -p tsconfig.build.json && rollup -c rollup.dts.config.mjs && rm -rf dist-types",
20
20
  "typecheck": "tsc --noEmit",
21
- "clean": "rm -rf dist",
21
+ "clean": "rm -rf dist dist-types",
22
22
  "test": "vitest run",
23
23
  "test:watch": "vitest",
24
24
  "test:coverage": "vitest run --coverage"
@@ -28,8 +28,10 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@vitest/coverage-v8": "^4.1.0",
31
+ "rollup": "^4.60.3",
32
+ "rollup-plugin-dts": "^6.4.1",
31
33
  "tsup": "^8.0.1",
32
- "typescript": "^5.6.3"
34
+ "typescript": "^6.0.2"
33
35
  },
34
36
  "keywords": [
35
37
  "content",