improved packaging

This commit is contained in:
Morten Olsen
2025-09-09 18:22:56 +02:00
parent 0ff0b0992b
commit 17dd6d16fa
6 changed files with 14 additions and 6 deletions

View File

@@ -2,7 +2,6 @@
"type": "module",
"main": "src/exports.ts",
"scripts": {
"build": "tsc --build",
"test:unit": "vitest --run --passWithNoTests",
"test": "pnpm run \"/^test:/\""
},

View File

@@ -1,6 +1,7 @@
{
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"paths": {
"#root/*": ["./src"]
}

3
packages/server/bin/cli.js Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env node --no-warnings
import '../src/cli.ts';

View File

@@ -1,20 +1,24 @@
{
"type": "module",
"main": "dist/exports.js",
"bin": {
"fluxcurrent-server": "./bin/cli.js"
},
"main": "./src/start.ts",
"scripts": {
"build": "tsc --build",
"dev": "node --watch --no-warnings ./bin/cli.js",
"test:unit": "vitest --run --passWithNoTests",
"test": "pnpm run \"/^test:/\""
},
"packageManager": "pnpm@10.6.0",
"files": [
"dist"
"bin",
"src"
],
"imports": {
"#root/*": "./src/*"
},
"exports": {
".": "./dist/exports.js"
".": "./src/exports.ts"
},
"devDependencies": {
"@morten-olsen/fluxcurrent-configs": "workspace:*",

View File

@@ -1,6 +1,7 @@
{
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"paths": {
"#root/*": ["./src"]
}