Rename deno.jsonc to deno.json and improve imports definitions to better define dependencies

This commit is contained in:
Pablo Baleztena 2024-10-20 11:32:58 -03:00
parent 2cd252511a
commit de8c249faf
9 changed files with 65 additions and 39 deletions

View File

@ -1,8 +1,6 @@
{ {
"tasks": { "tasks": {
"test": "deno test --allow-all --unstable-ffi", "check": "deno fmt && deno lint --fix && deno check **/*.ts && deno test -A",
"test:dev": "deno test --allow-all --unstable-ffi --watch",
"check": "deno fmt && deno lint --fix && deno check **/*.ts && deno task test",
"hook": "deno run --allow-read --allow-run --allow-write https://deno.land/x/deno_hooks@0.1.1/mod.ts" "hook": "deno run --allow-read --allow-run --allow-write https://deno.land/x/deno_hooks@0.1.1/mod.ts"
}, },
"workspace": [ "workspace": [
@ -10,16 +8,11 @@
"packages/fabric/domain", "packages/fabric/domain",
"packages/fabric/sqlite-store", "packages/fabric/sqlite-store",
"packages/fabric/testing", "packages/fabric/testing",
"packages/fabric/validations",
"packages/templates/domain", "packages/templates/domain",
"packages/templates/lib" "packages/templates/lib",
"apps/syntropy/domain"
], ],
"imports": {
"@db/sqlite": "jsr:@db/sqlite@^0.12.0",
"@quentinadam/decimal": "jsr:@quentinadam/decimal@^0.1.6",
"@std/expect": "jsr:@std/expect@^1.0.5",
"@std/testing": "jsr:@std/testing@^1.0.3",
"expect-type": "npm:expect-type@^1.1.0"
},
"compilerOptions": { "compilerOptions": {
"strict": true, "strict": true,
"exactOptionalPropertyTypes": true, "exactOptionalPropertyTypes": true,
@ -27,8 +20,8 @@
"noImplicitOverride": true, "noImplicitOverride": true,
"noUncheckedIndexedAccess": true "noUncheckedIndexedAccess": true
}, },
"unstable": ["ffi"],
"lint": { "lint": {
"include": ["src/"],
"rules": { "rules": {
"tags": ["recommended"], "tags": ["recommended"],
"exclude": ["no-namespace"] "exclude": ["no-namespace"]

View File

@ -5,7 +5,6 @@
"jsr:@db/sqlite@0.12": "0.12.0", "jsr:@db/sqlite@0.12": "0.12.0",
"jsr:@denosaurs/plug@1": "1.0.6", "jsr:@denosaurs/plug@1": "1.0.6",
"jsr:@quentinadam/assert@~0.1.7": "0.1.7", "jsr:@quentinadam/assert@~0.1.7": "0.1.7",
"jsr:@quentinadam/decimal@*": "0.1.6",
"jsr:@quentinadam/decimal@~0.1.6": "0.1.6", "jsr:@quentinadam/decimal@~0.1.6": "0.1.6",
"jsr:@std/assert@0.217": "0.217.0", "jsr:@std/assert@0.217": "0.217.0",
"jsr:@std/assert@0.221": "0.221.0", "jsr:@std/assert@0.221": "0.221.0",
@ -127,12 +126,32 @@
} }
}, },
"workspace": { "workspace": {
"members": {
"packages/fabric/domain": {
"dependencies": [
"jsr:@fabric/core@*",
"jsr:@fabric/validations@*",
"jsr:@quentinadam/decimal@~0.1.6"
]
},
"packages/fabric/sqlite-store": {
"dependencies": [ "dependencies": [
"jsr:@db/sqlite@0.12", "jsr:@db/sqlite@0.12",
"jsr:@quentinadam/decimal@~0.1.6", "jsr:@fabric/domain@*"
]
},
"packages/fabric/testing": {
"dependencies": [
"jsr:@std/expect@^1.0.5", "jsr:@std/expect@^1.0.5",
"jsr:@std/testing@^1.0.3", "jsr:@std/testing@^1.0.3",
"npm:expect-type@^1.1.0" "npm:expect-type@^1.1.0"
] ]
},
"packages/fabric/validations": {
"dependencies": [
"jsr:@fabric/core@*"
]
}
}
} }
} }

View File

@ -0,0 +1,12 @@
{
"name": "@fabric/domain",
"exports": {
".": "./index.ts",
"./mocks": "./mocks.ts"
},
"imports": {
"@fabric/core": "jsr:@fabric/core",
"@fabric/validations": "jsr:@fabric/validations",
"decimal": "jsr:@quentinadam/decimal@^0.1.6"
}
}

View File

@ -1,7 +0,0 @@
{
"name": "@fabric/domain",
"exports": {
".": "./index.ts",
"./mocks": "./mocks.ts"
}
}

View File

@ -0,0 +1,10 @@
{
"name": "@fabric/sqlite-store",
"exports": {
".": "./index.ts"
},
"imports": {
"@db/sqlite": "jsr:@db/sqlite@^0.12.0",
"@fabric/domain": "jsr:@fabric/domain"
}
}

View File

@ -1,6 +0,0 @@
{
"name": "@fabric/sqlite-store",
"exports": {
".": "./index.ts"
}
}

View File

@ -0,0 +1,11 @@
{
"name": "@fabric/testing",
"exports": {
".": "./index.ts"
},
"imports": {
"expect-type": "npm:expect-type@^1.1.0",
"@std/expect": "jsr:@std/expect@^1.0.5",
"@std/testing": "jsr:@std/testing@^1.0.3"
}
}

View File

@ -1,6 +0,0 @@
{
"name": "@fabric/testing",
"exports": {
".": "./index.ts"
}
}