Skip to content

Commit

Permalink
WIP yarn build
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesailor24 committed Dec 21, 2024
1 parent ccbd8cb commit 48910d4
Show file tree
Hide file tree
Showing 18 changed files with 125 additions and 365 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@
"lint:fix": "nx run-many --target=lint --all -- --fix",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"",
"clean": "nx run-many --target=clean --all && rm -rf dist node_modules",
"clean": "nx run-many --target=clean --all && rm -rf node_modules dist",
"prepare": "husky install"
},
"workspaces": [
"packages/*"
],
"devDependencies": {
"@jest/types": "^29.6.3",
"@nx/esbuild": "^20.3.0",
"@nx/eslint": "20.3.0",
"@nx/eslint-plugin": "^20.3.0",
"@nx/jest": "20.3.0",
"@nx/eslint": "^20.3.0",
"@nx/jest": "^20.3.0",
"@nx/js": "^20.3.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^6.0.0",
Expand All @@ -36,7 +35,7 @@
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^15.0.0",
"nx": "20.3.0",
"nx": "^20.3.0",
"prettier": "^3.4.2",
"ts-jest": "^29.2.5",
"tsup": "^8.0.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/lit-agent-signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"scripts": {
"build": "nx build lit-agent-signer",
"test": "dotenvx run -- nx test lit-agent-signer",
"dev": "nx build lit-agent-signer --watch",
"test": "nx test lit-agent-signer",
"lint": "nx lint lit-agent-signer",
"format": "prettier --write src/**/*.ts",
"example": "npx tsx examples/basic-usage.ts",
Expand All @@ -37,12 +38,12 @@
"@types/node-localstorage": "^1.3.3",
"@typescript-eslint/eslint-plugin": "^8",
"@typescript-eslint/parser": "^8",
"esbuild": "^0.20.1",
"eslint": "^9",
"globals": "^15.14.0",
"jest": "^29.7.0",
"prettier": "^3.4.2",
"ts-jest": "^29.1.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
}
}
30 changes: 5 additions & 25 deletions packages/lit-agent-signer/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,10 @@
"targets": {
"build": {
"executor": "nx:run-commands",
"outputs": ["{options.outputPath}"],
"outputs": ["{projectRoot}/dist"],
"options": {
"commands": [
"tsc --project tsconfig.json",
"nx run lit-agent-signer:bundle"
],
"cwd": "packages/lit-agent-signer",
"parallel": false
}
},
"bundle": {
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist",
"main": "src/index.ts",
"tsConfig": "tsconfig.json",
"assets": ["*.md"],
"format": ["esm"],
"bundle": true,
"minify": false,
"skipTypeCheck": true,
"platform": "node",
"external": ["node:*"],
"outputFileExtensionForESM": ".js"
"command": "tsup \"src/**/*.ts\" --format esm --dts --sourcemap --clean --treeshake --external ethers --no-splitting",
"cwd": "packages/lit-agent-signer"
}
},
"lint": {
Expand All @@ -47,7 +26,8 @@
"clean": {
"executor": "nx:run-commands",
"options": {
"command": "rm -rf {projectRoot}/dist {projectRoot}/node_modules"
"command": "rm -rf dist node_modules",
"cwd": "packages/lit-agent-signer"
}
}
},
Expand Down
21 changes: 9 additions & 12 deletions packages/lit-agent-signer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "ES2020",
"module": "ES2020",
"lib": ["ES2020"],
"declaration": true,
"declarationDir": "dist",
"outDir": "dist",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node",
"declarationDir": "dist",
"rootDir": "src",
"typeRoots": ["./node_modules/@types", "./src/types"],
"emitDeclarationOnly": true
"typeRoots": [
"../../node_modules/@types",
"./node_modules/@types",
"./src/types"
]
},
"include": ["src/**/*"],
"references": [{ "path": "../lit-agent-toolkit" }],
"include": ["src/**/*.ts", "src/*.ts"],
"exclude": ["node_modules", "dist", "test", "examples"]
}
1 change: 1 addition & 0 deletions packages/lit-agent-signer/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions packages/lit-agent-tool-send-erc20/dist/index.d.ts

This file was deleted.

56 changes: 0 additions & 56 deletions packages/lit-agent-tool-send-erc20/dist/policy.d.ts

This file was deleted.

30 changes: 5 additions & 25 deletions packages/lit-agent-tool-send-erc20/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,10 @@
"targets": {
"build": {
"executor": "nx:run-commands",
"outputs": ["{options.outputPath}"],
"outputs": ["{projectRoot}/dist"],
"options": {
"commands": [
"tsc --project tsconfig.json",
"nx run lit-agent-tool-send-erc20:bundle"
],
"cwd": "packages/lit-agent-tool-send-erc20",
"parallel": false
}
},
"bundle": {
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist",
"main": "src/index.ts",
"tsConfig": "tsconfig.json",
"assets": ["*.md"],
"format": ["esm"],
"bundle": true,
"minify": false,
"skipTypeCheck": true,
"platform": "node",
"external": ["node:*"],
"outputFileExtensionForESM": ".js"
"command": "tsup \"src/**/*.ts\" --format esm --dts --sourcemap --clean --treeshake --external ethers --no-splitting",
"cwd": "packages/lit-agent-tool-send-erc20"
}
},
"lint": {
Expand All @@ -47,7 +26,8 @@
"clean": {
"executor": "nx:run-commands",
"options": {
"command": "rm -rf {projectRoot}/dist {projectRoot}/node_modules"
"command": "rm -rf dist node_modules",
"cwd": "packages/lit-agent-tool-send-erc20"
}
}
},
Expand Down
Loading

0 comments on commit 48910d4

Please sign in to comment.