-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: revert tsconfig.json, remove "type" in package.json, and tu…
…ne tsup config
- Loading branch information
1 parent
a623b44
commit 4f61ed8
Showing
18 changed files
with
334 additions
and
305 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
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
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,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "Bundler", | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"lib": ["ESNext", "DOM"], | ||
"strict": true, | ||
"noEmit": true, | ||
"allowJs": true, | ||
"sourceMap": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"strictNullChecks": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
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,13 +1,10 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
import { dependencies, name } from './package.json'; | ||
|
||
import config from '../../tsup-base.config'; | ||
|
||
export default defineConfig({ | ||
...config, | ||
name, | ||
name: '@rgbpp-sdk/btc', | ||
dts: true, | ||
clean: true, | ||
sourcemap: true, | ||
format: ['esm', 'cjs'], | ||
entry: ['src/index.ts'], | ||
external: Object.keys(dependencies), | ||
platform: 'browser', | ||
}); |
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,27 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"compilerOptions": { | ||
"moduleResolution": "Bundler", | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"lib": ["ESNext", "DOM"], | ||
"strict": true, | ||
"noEmit": true, | ||
"allowJs": true, | ||
"sourceMap": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"strictNullChecks": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist", "**/*.spec.ts", "example"], | ||
"ts-node": { | ||
// these options are overrides used only by ts-node | ||
// same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable | ||
"compilerOptions": { | ||
"module": "CommonJS" | ||
} | ||
} | ||
} |
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,13 +1,10 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
import { dependencies, name } from './package.json'; | ||
|
||
import config from '../../tsup-base.config'; | ||
|
||
export default defineConfig({ | ||
...config, | ||
name, | ||
name: '@rgbpp-sdk/ckb', | ||
dts: true, | ||
clean: true, | ||
sourcemap: true, | ||
format: ['esm', 'cjs'], | ||
entry: ['src/index.ts'], | ||
external: Object.keys(dependencies), | ||
platform: 'browser', | ||
}); |
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,20 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"compilerOptions": { | ||
"moduleResolution": "Bundler", | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"lib": ["ESNext", "DOM"], | ||
"strict": true, | ||
"noEmit": true, | ||
"allowJs": true, | ||
"sourceMap": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"strictNullChecks": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
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,13 +1,10 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
import { dependencies, name } from './package.json'; | ||
|
||
import config from '../../tsup-base.config'; | ||
|
||
export default defineConfig({ | ||
...config, | ||
name, | ||
name: 'rgbpp', | ||
dts: true, | ||
clean: true, | ||
sourcemap: true, | ||
format: ['esm', 'cjs'], | ||
entry: ['src/index.ts', 'src/btc.ts', 'src/ckb.ts', 'src/service.ts'], | ||
external: Object.keys(dependencies), | ||
platform: 'browser', | ||
}); |
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,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "Bundler", | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"lib": ["ESNext", "DOM"], | ||
"strict": true, | ||
"noEmit": true, | ||
"allowJs": true, | ||
"sourceMap": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"strictNullChecks": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
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,13 +1,10 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
import { dependencies, name } from './package.json'; | ||
|
||
import config from '../../tsup-base.config'; | ||
|
||
export default defineConfig({ | ||
...config, | ||
name, | ||
name: '@rgbpp-sdk/service', | ||
dts: true, | ||
clean: true, | ||
sourcemap: true, | ||
format: ['esm', 'cjs'], | ||
entry: ['src/index.ts'], | ||
external: Object.keys(dependencies), | ||
platform: 'browser', | ||
}); |
Oops, something went wrong.