Build shared package outputs
This commit is contained in:
@@ -2,6 +2,15 @@ type: library
|
|||||||
language: typescript
|
language: typescript
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
build:
|
||||||
|
command: bun run build
|
||||||
|
inputs:
|
||||||
|
- src/**/*
|
||||||
|
- tsconfig.json
|
||||||
|
- tsconfig.build.json
|
||||||
|
- package.json
|
||||||
|
outputs:
|
||||||
|
- dist
|
||||||
typecheck:
|
typecheck:
|
||||||
command: bun run typecheck
|
command: bun run typecheck
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
@@ -4,10 +4,17 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"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": {
|
"scripts": {
|
||||||
|
"build": "tsc --project tsconfig.build.json",
|
||||||
"typecheck": "tsc --project tsconfig.json"
|
"typecheck": "tsc --project tsconfig.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"noEmit": false,
|
||||||
|
"declaration": true,
|
||||||
|
"declarationMap": true,
|
||||||
|
"emitDeclarationOnly": false,
|
||||||
|
"outDir": "dist",
|
||||||
|
"rootDir": "src"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user