File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed
Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tfjs-image-node" ,
3- "version" : " 1.1.1 " ,
3+ "version" : " 1.1.2 " ,
44 "description" : " A simple image classifier using tfjs and running in node.js" ,
5- "main" : " ./dist/index.js" ,
6- "module" : " ./dist/index.mjs" ,
7- "types" : " ./dist/index.d.ts" ,
5+ "main" : " ./dist/node/ index.js" ,
6+ "module" : " ./dist/node/ index.mjs" ,
7+ "types" : " ./dist/node/ index.d.ts" ,
88 "files" : [
99 " dist"
1010 ],
11+ "exports" : {
12+ "." : {
13+ "import" : " ./dist/node/index.js" ,
14+ "require" : " ./dist/node/index.js" ,
15+ "types" : " ./dist/node/index.d.ts"
16+ },
17+ "./node" : {
18+ "import" : " ./dist/node/index.js" ,
19+ "require" : " ./dist/node/index.js" ,
20+ "types" : " ./dist/node/index.d.ts"
21+ },
22+ "./js" : {
23+ "import" : " ./dist/js/index.js" ,
24+ "require" : " ./dist/js/index.js" ,
25+ "types" : " ./dist/js/index.d.ts"
26+ }
27+ },
1128 "scripts" : {
1229 "build" : " tsup" ,
1330 "test" : " mocha --require ts-node/register 'test/**/*.test.ts' --timeout 6000"
Original file line number Diff line number Diff line change 11import { defineConfig } from "tsup" ;
22
33export default defineConfig ( {
4- entry : [ "src/js/index.ts" , "src/node/index.ts "] ,
4+ entry : [ "src/** " ] ,
55 format : [ "cjs" , "esm" ] , // Build for commonJS and ESmodules
66 dts : true , // Generate declaration file (.d.ts)
77 splitting : false ,
88 sourcemap : true ,
99 clean : true ,
10+ minify : true ,
1011} ) ;
You can’t perform that action at this time.
0 commit comments