File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 44 "version" : " 0.0.4" ,
55 "description" : " Pipedream AI" ,
66 "main" : " ./dist/index.js" ,
7+ "module" : " ./dist/index.js" ,
78 "types" : " ./dist/index.d.ts" ,
89 "exports" : {
910 "." : {
11+ "types" : " ./dist/index.d.ts" ,
1012 "import" : " ./dist/index.js" ,
11- "types" : " ./dist/index.d.ts"
13+ "require" : " ./dist/index.cjs" ,
14+ "default" : " ./dist/index.js"
1215 }
1316 },
1417 "engines" : {
2427 "access" : " public"
2528 },
2629 "scripts" : {
27- "build" : " tsc --noCheck " ,
30+ "build" : " rm -rf dist && tsup --config tsup.config.js " ,
2831 "prepublish" : " npm run build"
2932 },
3033 "files" : [
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ export class CoreTools {
2727 q : options ?. query ,
2828 } ) ;
2929
30- for ( const component of components ) {
30+ for ( const _component of components ) {
31+ const component = _component as V1Component ; // This is the correct type. When the sdk is updated, this will be removed.
3132 this . tools . push ( {
3233 name : component . name . replace ( / [ ^ a - z A - Z 0 - 9 _ - ] / g, "_" ) ,
3334 description : component . description ,
Original file line number Diff line number Diff line change 1+ import { defineConfig } from "tsup" ;
2+
3+ export default defineConfig ( {
4+ entry : {
5+ index : "./src/index.ts" ,
6+ } ,
7+ format : [
8+ "cjs" ,
9+ "esm" ,
10+ ] ,
11+ minify : true ,
12+ sourcemap : true ,
13+ dts : true ,
14+ clean : true ,
15+ } ) ;
You can’t perform that action at this time.
0 commit comments