Skip to content

Commit

Permalink
chore(swingset-liveslots): export TypeScript definitions (#10869)
Browse files Browse the repository at this point in the history
refs: #6343

## Description

Properly expose TypeScript definitions from `@agoric/swingset-liveslots` package by adding TypeScript build steps in `package.json` which generate the definitions.

### Security Considerations
No security impact - only affects TypeScript type definitions which are stripped at compile time.

### Scaling Considerations
No scaling impact - changes only affect development-time TypeScript support.

### Documentation Considerations
No documentation updates needed - this is a developer-facing change for TypeScript users.

### Testing Considerations
Existing type coverage tests continue to pass. No additional testing needed as this only affects type definition exposure.

### Upgrade Considerations
No upgrade impact - purely development-time TypeScript support changes.
  • Loading branch information
sirtimid authored Jan 22, 2025
1 parent 8a7c1b2 commit 79df2da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
9 changes: 5 additions & 4 deletions packages/swingset-liveslots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc",
"lint:eslint": "eslint ."
"lint:eslint": "eslint .",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f ':!src/types-index.d.ts' '*.d.ts*' '*.tsbuildinfo'"
},
"dependencies": {
"@endo/errors": "^1.2.8",
Expand All @@ -36,9 +38,8 @@
"@agoric/kmarshal": "^0.1.0"
},
"files": [
"src/**/*.js",
"src/**/*.d.ts",
"test/**/*.js",
"src",
"test",
"tools",
"exported.js"
],
Expand Down
6 changes: 6 additions & 0 deletions packages/swingset-liveslots/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"./tsconfig.json",
"../../tsconfig-build-options.json"
]
}
9 changes: 4 additions & 5 deletions packages/swingset-liveslots/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {},
"include": [
"*.js",
"scripts/**/*.js",
"src/**/*.js",
"test/**/*.js",
"tools/**/*.js",
"scripts",
"src",
"test",
"tools",
],
}

0 comments on commit 79df2da

Please sign in to comment.