mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
chore: set tsconfig paths for all zk-kit packages
Former-commit-id: 92f063bf3794f022233565633299610938e62e09 [formerly 9fb0532beafe80f1591bd9aa3b083dfd55469611] [formerly 3b14775151319fe357ebbe82a4931f85c15a3bbd [formerly 87dbdfb166]]
Former-commit-id: 28a49fe4119f800a610d6a1c0315baf31f598fe0 [formerly 346fea95b7b9f2d17c928a5019cbcfb664b0fdfc]
Former-commit-id: 65d03434f0522b0ef27ef74ef456099e4db9309a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs from "fs"
|
||||
import type { Config } from "@jest/types"
|
||||
|
||||
const projects = fs
|
||||
const projects: any = fs
|
||||
.readdirSync("./packages", { withFileTypes: true })
|
||||
.filter((directory) => directory.isDirectory())
|
||||
.map(({ name }) => ({
|
||||
@@ -9,8 +9,7 @@ const projects = fs
|
||||
displayName: name,
|
||||
moduleNameMapper: {
|
||||
"@zk-kit/types": "<rootDir>/../../types/zk-kit/index.d.ts",
|
||||
// Interdependency packages:
|
||||
"@zk-kit/identity": "<rootDir>/../identity/src/index.ts"
|
||||
"@zk-kit/(.*)": "<rootDir>/../$1/src/index.ts" // Interdependency packages.
|
||||
}
|
||||
}))
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"declarationDir": "types"
|
||||
"declarationDir": "types",
|
||||
"paths": {}
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"declarationDir": "types"
|
||||
"declarationDir": "types",
|
||||
"paths": {}
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"declarationDir": "types"
|
||||
"allowJs": true,
|
||||
"declarationDir": "types",
|
||||
"paths": {}
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"declarationDir": "types"
|
||||
"declarationDir": "types",
|
||||
"paths": {}
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"typeRoots": ["node_modules/@types", "types"],
|
||||
"paths": {
|
||||
"@zk-kit/types": ["types/zk-kit"],
|
||||
"@zk-kit/identity": ["packages/identity/src"]
|
||||
"@zk-kit/*": ["packages/*/src"]
|
||||
}
|
||||
},
|
||||
"ts-node": {
|
||||
|
||||
Reference in New Issue
Block a user