scoped package
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ pkgs, lib, config, inputs, ... }:
|
||||
|
||||
{
|
||||
packages = [ pkgs.bun ];
|
||||
packages = [ pkgs.bun pkgs.nodejs_24];
|
||||
languages.typescript.enable = true;
|
||||
|
||||
}
|
||||
|
||||
25
package.json
25
package.json
@@ -1,14 +1,25 @@
|
||||
{
|
||||
"name": "tdir",
|
||||
"module": "index.ts",
|
||||
"name": "@gregorlohaus/tdir",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@types/bun": "^1.3.11"
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"files": ["dist"],
|
||||
"scripts": {
|
||||
"build": "bun build ./index.ts --outdir ./dist --target node --external zod && bunx tsc --project tsconfig.build.json",
|
||||
"test": "bun test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "^1.3.11",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "^4.3.6"
|
||||
"peerDependencies": {
|
||||
"zod": "^4"
|
||||
}
|
||||
}
|
||||
|
||||
10
tsconfig.build.json
Normal file
10
tsconfig.build.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": false,
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./dist"
|
||||
},
|
||||
"include": ["index.ts", "parser.ts", "render.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user