-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build esm cjs package * update chopsticks.js * update tsconfig and fix path * fix docs * fix yarn pack * no need to remove .buildinfo now that they're created inside dist --------- Co-authored-by: Ermal Kaleci <ermalkaleci@gmail.com>
- Loading branch information
1 parent
f8e2ed2
commit 1e4aac2
Showing
19 changed files
with
144 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env node | ||
require('./lib/cli.js') | ||
require('./dist/cjs/cli.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
export { rpc as newBlock, NewBlockParams } from './new-block' | ||
export { rpc as dryRun, DryRunParams } from './dry-run' | ||
export { rpc as newBlock } from './new-block' | ||
export { rpc as dryRun } from './dry-run' | ||
export { rpc as setBlockBuildMode } from './set-block-build-mode' | ||
export { rpc as setHead } from './set-head' | ||
export { rpc as setRuntimeLogLevel } from './set-runtime-log-level' | ||
export { rpc as setStorage } from './set-storage' | ||
export { rpc as timeTravel } from './time-travel' | ||
export { rpc as runBlock, RunBlockParams } from './run-block' | ||
export { rpc as runBlock } from './run-block' | ||
|
||
export type { NewBlockParams } from './new-block' | ||
export type { DryRunParams } from './dry-run' | ||
export type { RunBlockParams } from './run-block' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"module": "ES2022", | ||
"outDir": "dist/esm" | ||
}, | ||
"references": [{ "path": "../core/tsconfig.esm.json" }, { "path": "../db/tsconfig.esm.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
"rootDir": "src", | ||
"outDir": "dist/cjs", | ||
"declarationDir": "dist/types" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/**/*.test.ts"], | ||
"references": [{ "path": "../core" }, { "path": "../db" }], | ||
"typedocOptions": { | ||
"entryPoints": ["src/types.ts"], | ||
"out": "../../docs-src/chopsticks", | ||
"plugin": "typedoc-plugin-markdown", | ||
"readme": "none" | ||
} | ||
"references": [{ "path": "../core/tsconfig.json" }, { "path": "../db/tsconfig.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"entryPoints": ["src/types.ts"], | ||
"out": "../../docs-src/chopsticks", | ||
"plugin": "typedoc-plugin-markdown", | ||
"readme": "none", | ||
"tsconfig": "tsconfig.esm.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"module": "ES2022", | ||
"outDir": "./dist/esm" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src", | ||
"lib": ["es2021", "dom", "dom.iterable"], | ||
"isolatedModules": true | ||
"outDir": "./dist/cjs", | ||
"declarationDir": "./dist/types" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/**/*.test.ts"], | ||
"typedocOptions": { | ||
"entryPoints": ["src/index.ts"], | ||
"out": "../../docs-src/core", | ||
"plugin": "typedoc-plugin-markdown", | ||
"readme": "none", | ||
"excludePrivate": true | ||
} | ||
"exclude": ["src/**/*.test.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"entryPoints": ["src/index.ts"], | ||
"out": "../../docs-src/core", | ||
"plugin": "typedoc-plugin-markdown", | ||
"readme": "none", | ||
"excludePrivate": true, | ||
"tsconfig": "tsconfig.esm.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"module": "ES2022", | ||
"outDir": "dist/esm" | ||
}, | ||
"references": [{ "path": "../core/tsconfig.esm.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src", | ||
"lib": ["es2021", "dom", "dom.iterable"], | ||
"isolatedModules": true | ||
"outDir": "dist/cjs", | ||
"declarationDir": "dist/types" | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["src/**/*.test.ts"], | ||
"references": [{ "path": "../core" }] | ||
"references": [{ "path": "../core/tsconfig.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"module": "ES2022", | ||
"outDir": "dist/esm" | ||
}, | ||
"references": [{ "path": "../chopsticks/tsconfig.esm.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src", | ||
"module": "ES2022" // this is required for vitest to work | ||
"outDir": "dist/cjs", | ||
"declarationDir": "dist/types" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/**/*.test.ts"], | ||
"references": [ | ||
{ | ||
"path": "../chopsticks" | ||
} | ||
] | ||
"references": [{ "path": "../chopsticks/tsconfig.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters