Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
rekyyang committed May 26, 2024
1 parent c9c92de commit 2b28808
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default async () => {
defaultIsModuleExports: false,
}),
typescript({
tsconfig: './src/config/tsconfig-esm.json',
tsconfig: './tsconfig-esm.json',
declarationDir: './dist/esm',
}),
alias({
Expand Down
10 changes: 0 additions & 10 deletions src/config/tsconfig-cjs.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/config/tsconfig-test.json

This file was deleted.

3 changes: 2 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Web3PluginBase } from "web3";
import { QueryBundle, SendBundleArg } from "./types";

import type { QueryBundle, SendBundleArg } from "./types";

type BundleRpcApi = {
eth_sendBundle: (parameter1: SendBundleArg) => string;
Expand Down
2 changes: 1 addition & 1 deletion src/config/tsconfig-esm.json → tsconfig-esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"target": "es2020",
"module": "ES2020",
"outDir": "../../dist/esm/",
"outDir": "./dist/esm/",
"moduleResolution": "node"
}
}
10 changes: 5 additions & 5 deletions src/config/tsconfig.json → tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
"declarationDir": "../dist/types",
"outDir": "../../dist",
"declarationDir": "./dist/types",
"outDir": "./dist",
"emitDeclarationOnly": false,
"allowUmdGlobalAccess": true,
"allowJs": true,
Expand All @@ -23,14 +23,14 @@
"strictPropertyInitialization": false,
"paths": {
"@/*": [
"../*"
"./*"
]
}
},
"include": [
"../*",
"./src/*"
],
"exclude": [
"../../node_modules",
"./node_modules"
]
}

0 comments on commit 2b28808

Please sign in to comment.