Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"tool-erc20-approval",
"tool-uniswap-swap",
"mcp-server",
"toolpolicies-e2e"
"toolpolicies-e2e",
"@lit-protocol/lit-action-bundler"
],
"projectsRelationship": "independent",
"releaseTagPattern": "vincent/{projectName}/{version}",
Expand Down
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@swc-node/register": "~1.9.1",
"@swc/core": "~1.5.7",
"@swc/helpers": "~0.5.11",
"@swc/jest": "~0.2.36",
"@types/jest": "^29.5.14",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^8.26.1",
Expand Down Expand Up @@ -85,9 +86,23 @@
"typedoc-plugin-extras": "^4.0.0",
"typedoc-plugin-zod": "^1.4.1",
"typescript": "^5.8.3",
"typescript-eslint": "^8.29.0"
"typescript-eslint": "^8.29.0",
"verdaccio": "^6.0.5"
},
"overrides": {
"typescript": "5.8.3"
},
"nx": {
"includedScripts": [],
"targets": {
"local-registry": {
"executor": "@nx/js:verdaccio",
"options": {
"port": 4873,
"config": ".verdaccio/config.yml",
"storage": "tmp/local-registry/storage"
}
}
}
}
}
6 changes: 6 additions & 0 deletions packages/apps/app-dashboard/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
},
"include": ["src"],
"references": [
{
"path": "../../libs/registry-sdk/tsconfig.lib.json"
},
{
"path": "../../libs/contracts-sdk/tsconfig.lib.json"
},
{
"path": "../../libs/app-sdk/tsconfig.lib.json"
}
Expand Down
6 changes: 6 additions & 0 deletions packages/apps/app-dashboard/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
},
"files": [],
"references": [
{
"path": "../../libs/registry-sdk"
},
{
"path": "../../libs/contracts-sdk"
},
{
"path": "../../libs/app-sdk"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/mcp/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
],
"references": [
{
"path": "../../libs/app-sdk/tsconfig.lib.json"
"path": "../../libs/mcp-sdk/tsconfig.lib.json"
},
{
"path": "../../libs/tool-sdk/tsconfig.lib.json"
"path": "../../libs/app-sdk/tsconfig.lib.json"
}
]
}
4 changes: 2 additions & 2 deletions packages/apps/mcp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"include": [],
"references": [
{
"path": "../../libs/app-sdk"
"path": "../../libs/mcp-sdk"
},
{
"path": "../../libs/tool-sdk"
"path": "../../libs/app-sdk"
}
]
}
3 changes: 3 additions & 0 deletions packages/apps/policy-spending-limit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
{
"path": "../../libs/tool-sdk"
},
{
"path": "../../libs/app-sdk"
},
{
"path": "./tsconfig.lib.json"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/apps/policy-spending-limit/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"references": [
{
"path": "../../libs/tool-sdk/tsconfig.lib.json"
},
{
"path": "../../libs/app-sdk/tsconfig.lib.json"
}
],
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
Expand Down
3 changes: 3 additions & 0 deletions packages/apps/registry-backend/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"references": [
{
"path": "../../libs/registry-sdk/tsconfig.lib.json"
},
{
"path": "../../libs/contracts-sdk/tsconfig.lib.json"
}
]
}
3 changes: 3 additions & 0 deletions packages/apps/registry-backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
{
"path": "../../libs/registry-sdk"
},
{
"path": "../../libs/contracts-sdk"
},
{
"path": "./tsconfig.spec.json"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/apps/tool-erc20-approval/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
{
"path": "../../libs/tool-sdk"
},
{
"path": "../../libs/app-sdk"
},
{
"path": "./tsconfig.lib.json"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/apps/tool-erc20-approval/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"references": [
{
"path": "../../libs/tool-sdk/tsconfig.lib.json"
},
{
"path": "../../libs/app-sdk/tsconfig.lib.json"
}
],
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
Expand Down
3 changes: 3 additions & 0 deletions packages/apps/tool-uniswap-swap/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{
"path": "../policy-spending-limit"
},
{
"path": "../../libs/app-sdk"
},
{
"path": "./tsconfig.lib.json"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/apps/tool-uniswap-swap/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
{
"path": "../policy-spending-limit/tsconfig.lib.json"
},
{
"path": "../../libs/app-sdk/tsconfig.lib.json"
}
],
"exclude": [
Expand Down
7 changes: 5 additions & 2 deletions packages/apps/toolpolicies-e2e/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
],
"references": [
{
"path": "../tool-uniswap-swap/tsconfig.lib.json"
"path": "../../libs/contracts-sdk/tsconfig.lib.json"
},
{
"path": "../../libs/app-sdk/tsconfig.lib.json"
"path": "../tool-uniswap-swap/tsconfig.lib.json"
},
{
"path": "../../libs/tool-sdk/tsconfig.lib.json"
Expand All @@ -40,6 +40,9 @@
},
{
"path": "../policy-spending-limit/tsconfig.lib.json"
},
{
"path": "../../libs/app-sdk/tsconfig.lib.json"
}
]
}
7 changes: 5 additions & 2 deletions packages/apps/toolpolicies-e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"include": [],
"references": [
{
"path": "../tool-uniswap-swap"
"path": "../../libs/contracts-sdk"
},
{
"path": "../../libs/app-sdk"
"path": "../tool-uniswap-swap"
},
{
"path": "../../libs/tool-sdk"
Expand All @@ -18,6 +18,9 @@
{
"path": "../policy-spending-limit"
},
{
"path": "../../libs/app-sdk"
},
{
"path": "./tsconfig.app.json"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/libs/app-sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
{
"path": "../tool-sdk"
},
{
"path": "../contracts-sdk"
},
{
"path": "./tsconfig.lib.json"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/libs/app-sdk/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"references": [
{
"path": "../tool-sdk/tsconfig.lib.json"
},
{
"path": "../contracts-sdk/tsconfig.lib.json"
}
]
}
11 changes: 11 additions & 0 deletions packages/libs/lit-action-bundler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# lit-action-bundler

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build lit-action-bundler` to build the library.

## Running unit tests

Run `nx test lit-action-bundler` to execute the unit tests via [Jest](https://jestjs.io).
5 changes: 5 additions & 0 deletions packages/libs/lit-action-bundler/buffer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-disable */
// @ts-nocheck
export * from 'node:buffer';
import { default as buffer } from 'node:buffer';
export default buffer;
4 changes: 4 additions & 0 deletions packages/libs/lit-action-bundler/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Incrementally enforcing some stricter rules
const strictConfig = require('../../../eslint.config.strict.js');

module.exports = [...strictConfig];
8 changes: 8 additions & 0 deletions packages/libs/lit-action-bundler/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
preset: '../../../jest.preset.js',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.test.ts'],
collectCoverage: true,
coverageDirectory: 'coverage',
collectCoverageFrom: ['src/**/*.ts'],
};
43 changes: 43 additions & 0 deletions packages/libs/lit-action-bundler/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@lit-protocol/lit-action-bundler",
"version": "0.0.1",
"description": "Bundling tools for LIT actions which provide node compat shims for Deno",
"author": "LIT Protocol",
"license": "ISC",
"access": "public",
"packageManager": "[email protected]",
"publishConfig": {
"access": "public"
},
"engines": {
"node": "^20.11.1",
"pnpm": "10.7.0"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist",
"!**/*.tsbuildinfo"
],
"dependencies": {
"@lit-protocol/auth-helpers": "^7.2.0",
"@lit-protocol/constants": "^7.2.0",
"@lit-protocol/lit-node-client": "^7.2.0",
"esbuild": "^0.25.5",
"ethers": "5.8.0",
"ipfs-only-hash": "^4.0.0",
"tslib": "^2.8.1"
},
"devDependencies": {
"@lit-protocol/types": "^7.2.0"
}
}
64 changes: 64 additions & 0 deletions packages/libs/lit-action-bundler/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "lit-action-bundler",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/libs/lit-action-bundler/src",
"projectType": "library",
"tags": [],
"// targets": "to see all targets run: nx show project @lit-protocol/lit-action-bundler --web",
"targets": {
"clean": {},
"dev": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "packages/libs/lit-action-bundler/dist",
"tsConfig": "packages/libs/lit-action-bundler/tsconfig.lib.json",
"assets": ["packages/libs/lit-action-bundler/*.md"],
"formats": ["cjs"],
"watch": true
}
},
"typedoc:build": {
"executor": "nx:run-commands",
"options": {
"commands": [
"pnpm typedoc --skipErrorChecking --logLevel Verbose --options ./typedoc-configs/json.config.js"
],
"cwd": "{projectRoot}",
"tty": true
}
},
"typedoc:watch": {
"executor": "nx:run-commands",
"options": {
"commands": [
"pnpm typedoc --watch --logLevel Verbose --options ./typedoc-configs/html.config.js",
"node ./scripts/typedocServer.mjs"
],
"cwd": "{projectRoot}",
"tty": true
}
},
"typedoc:watch:json": {
"executor": "nx:run-commands",
"options": {
"commands": [
"pnpm typedoc --watch --logLevel Verbose --options ./typedoc-configs/json.config.js"
],
"cwd": "{projectRoot}",
"tty": true
}
},
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "packages/libs/lit-action-bundler/dist",
"main": "packages/libs/lit-action-bundler/src/index.ts",
"tsConfig": "packages/libs/lit-action-bundler/tsconfig.lib.json",
"assets": ["packages/libs/lit-action-bundler/*.md"],
"formats": ["cjs"]
}
}
}
}
Loading
Loading