Skip to content

Commit

Permalink
Merge pull request #6 from sidan-lab/ts-offchain
Browse files Browse the repository at this point in the history
feat: add ts support for offchain
  • Loading branch information
KtorZ authored Oct 17, 2024
2 parents ac9eae8 + ec20f88 commit 1d47a1c
Show file tree
Hide file tree
Showing 4 changed files with 840 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build/
on-chain/docs/
off-chain/docs/
off-chain/dist/
examples

# Logs
Expand Down
19 changes: 15 additions & 4 deletions off-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,30 @@
"cardano"
],
"type": "module",
"module": "./lib/index.js",
"exports": "./lib/index.js",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist/**"
],
"license": "MPL-2.0",
"scripts": {
"test": "ava",
"build": "tsup lib/index.js --format esm,cjs --dts",
"docs": "jsdoc lib/* -d docs"
},
"devDependencies": {
"typescript": "^5.3.3",
"ava": "^6.1.3",
"jsdoc": "^4.0.3"
"jsdoc": "^4.0.3",
"tsup": "^8.0.2"
},
"dependencies": {
"blake2b": "^2.1.4",
"level": "^8.0.1"
}
}
}
27 changes: 27 additions & 0 deletions off-chain/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"incremental": false,
"isolatedModules": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "node",
"moduleDetection": "force",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"sourceMap": true,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"noUnusedLocals": false,
"outDir": "dist"
},
"include": ["lib/**/*"],
"exclude": ["dist", "node_modules"]
}
Loading

0 comments on commit 1d47a1c

Please sign in to comment.