Build shared package outputs

This commit is contained in:
Asep Haryana Saputra
2026-05-22 12:19:33 +00:00
parent c3eed82262
commit e543226209
3 changed files with 29 additions and 2 deletions
+9
View File
@@ -2,6 +2,15 @@ type: library
language: typescript
tasks:
build:
command: bun run build
inputs:
- src/**/*
- tsconfig.json
- tsconfig.build.json
- package.json
outputs:
- dist
typecheck:
command: bun run typecheck
inputs:
+9 -2
View File
@@ -4,10 +4,17 @@
"private": true,
"type": "module",
"exports": {
".": "./src/index.ts",
"./app-status": "./src/app-status.ts"
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./app-status": {
"types": "./dist/app-status.d.ts",
"default": "./dist/app-status.js"
}
},
"scripts": {
"build": "tsc --project tsconfig.build.json",
"typecheck": "tsc --project tsconfig.json"
},
"devDependencies": {
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": false,
"outDir": "dist",
"rootDir": "src"
}
}