Skip to content

Commit

Permalink
feat: add tx types
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed Oct 28, 2024
1 parent 571cb9d commit 23504e5
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 8 deletions.
21 changes: 18 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@babylonlabs-io/babylon-proto-ts",
"version": "0.0.3",
"main": "index.js",
"version": "0.0.3-canary.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "node scripts/build-proto.js",
"build": "tsc && node scripts/build-proto.js",
"prepublishOnly": "npm run build"
},
"files": [
Expand All @@ -15,12 +16,13 @@
"description": "",
"devDependencies": {
"@bufbuild/buf": "^1.45.0",
"shelljs": "^0.8.5"
"shelljs": "^0.8.5",
"typescript": "^5.6.3"
},
"dependencies": {
"@bufbuild/protobuf": "^2.2.0"
},
"publishConfig": {
"access": "public"
}
}
}
26 changes: 26 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"strict": false, // Disable strict type checking globally
"skipLibCheck": true, // Skip type checking for library files
"noImplicitAny": false, // Allow implicit 'any' types
"outDir": "./dist", // Output directory for compiled files
"rootDir": "./src", // Root directory for source files
"declaration": true, // Generate .d.ts type declaration files
"declarationMap": true, // Generate .d.ts.map files for debugging
"esModuleInterop": true, // Enable compatibility with CommonJS modules
"module": "commonjs", // CommonJS module system
"target": "es2017", // Set target to ES2017 to support Object.entries
"lib": [
"es2017",
"dom"
] // Include ES2017 libraries for compatibility
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"dist",
"src/generated" // Exclude generated files to avoid type-checking them
]
}

0 comments on commit 23504e5

Please sign in to comment.