File tree Expand file tree Collapse file tree 6 files changed +59
-0
lines changed
Expand file tree Collapse file tree 6 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cloudwalker/ts-utils ' : minor
3+ ---
4+
5+ ✨ Add ObjectValues<T > type
Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ coverage
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @cloudwalker/ts-utils" ,
3+ "version" : " 0.0.0" ,
4+ "type" : " module" ,
5+ "scripts" : {
6+ "build" : " tsup src/main.ts" ,
7+ "dev" : " tsup src/main.ts --watch"
8+ },
9+ "files" : [
10+ " dist/**"
11+ ],
12+ "main" : " ./dist/main.cjs" ,
13+ "module" : " ./dist/main.js" ,
14+ "types" : " ./dist/main.d.ts" ,
15+ "exports" : {
16+ "." : {
17+ "import" : " ./dist/main.js" ,
18+ "require" : " ./dist/main.cjs"
19+ }
20+ },
21+ "sideEffects" : false ,
22+ "author" : {
23+ "name" : " Luca Barone" ,
24+ "email" : " baro.luc@gmail.com" ,
25+ "url" : " https://github.com/cloud-walker"
26+ },
27+ "devDependencies" : {
28+ "tsup" : " ^6.2.3" ,
29+ "typescript" : " ^4.8.2"
30+ },
31+ "publishConfig" : {
32+ "access" : " public"
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ export type ObjectValues < T extends Record < string , unknown > > = T [ keyof T ]
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "strict" : true ,
4+ "module" : " NodeNext" ,
5+ "skipLibCheck" : true
6+ },
7+ "include" : [" src" ]
8+ }
Original file line number Diff line number Diff line change 1+ import { defineConfig } from 'tsup'
2+
3+ export default defineConfig ( {
4+ format : [ 'cjs' , 'esm' ] ,
5+ dts : true ,
6+ minify : true ,
7+ sourcemap : true ,
8+ } )
You can’t perform that action at this time.
0 commit comments