improved packaging
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/exports.ts",
|
"main": "src/exports.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build",
|
|
||||||
"test:unit": "vitest --run --passWithNoTests",
|
"test:unit": "vitest --run --passWithNoTests",
|
||||||
"test": "pnpm run \"/^test:/\""
|
"test": "pnpm run \"/^test:/\""
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
"rootDir": "./src",
|
||||||
"paths": {
|
"paths": {
|
||||||
"#root/*": ["./src"]
|
"#root/*": ["./src"]
|
||||||
}
|
}
|
||||||
|
|||||||
3
packages/server/bin/cli.js
Executable file
3
packages/server/bin/cli.js
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env node --no-warnings
|
||||||
|
|
||||||
|
import '../src/cli.ts';
|
||||||
@@ -1,20 +1,24 @@
|
|||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/exports.js",
|
"bin": {
|
||||||
|
"fluxcurrent-server": "./bin/cli.js"
|
||||||
|
},
|
||||||
|
"main": "./src/start.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build",
|
"dev": "node --watch --no-warnings ./bin/cli.js",
|
||||||
"test:unit": "vitest --run --passWithNoTests",
|
"test:unit": "vitest --run --passWithNoTests",
|
||||||
"test": "pnpm run \"/^test:/\""
|
"test": "pnpm run \"/^test:/\""
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.6.0",
|
"packageManager": "pnpm@10.6.0",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"bin",
|
||||||
|
"src"
|
||||||
],
|
],
|
||||||
"imports": {
|
"imports": {
|
||||||
"#root/*": "./src/*"
|
"#root/*": "./src/*"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./dist/exports.js"
|
".": "./src/exports.ts"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@morten-olsen/fluxcurrent-configs": "workspace:*",
|
"@morten-olsen/fluxcurrent-configs": "workspace:*",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
"rootDir": "./src",
|
||||||
"paths": {
|
"paths": {
|
||||||
"#root/*": ["./src"]
|
"#root/*": ["./src"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user