Skip to content

Commit

Permalink
fix: readd tokenlist (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Oct 16, 2024
1 parent 98ba293 commit c9ab73b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 11 deletions.
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@
},
"types": "./dist/abis/index.d.ts",
"default": "./dist/abis/index.js"
},
"./tokenlist": {
"require": {
"types": "./dist/tokenlist.d.ts",
"default": "./dist/tokenlist.js"
},
"import": {
"types": "./dist/tokenlist.mts",
"default": "./dist/tokenlist.mjs"
},
"types": "./dist/tokenlist.d.ts",
"default": "./dist/tokenlist.js"
}
},
"sideEffects": false,
Expand Down
35 changes: 24 additions & 11 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,27 @@ import {defineConfig} from 'tsup';
import {esbuildPluginFilePathExtensions} from 'esbuild-plugin-file-path-extensions';

// https://github.com/egoist/tsup/issues/953
export default defineConfig({
format: ['cjs', 'esm'],
entry: ['src/**/*.ts'],
outDir: './dist',
bundle: true,
sourcemap: true,
clean: true,
splitting: false,
dts: true,
esbuildPlugins: [esbuildPluginFilePathExtensions({cjsExtension: 'js'})],
});
export default defineConfig([
{
format: ['cjs', 'esm'],
entry: ['src/**/*.ts'],
outDir: './dist',
bundle: true,
sourcemap: true,
// clean: true,
splitting: false,
dts: true,
esbuildPlugins: [esbuildPluginFilePathExtensions({cjsExtension: 'js'})],
},
{
format: ['cjs', 'esm'],
entry: ['tokenlist.json'],
outDir: './dist',
bundle: true,
sourcemap: true,
// clean: true,
splitting: false,
dts: true,
esbuildPlugins: [esbuildPluginFilePathExtensions({cjsExtension: 'js'})],
},
]);

0 comments on commit c9ab73b

Please sign in to comment.