diff --git a/.github/workflows/typescript-packages-unit-tests.yml b/.github/workflows/typescript-packages-unit-tests.yml index 3161a9647..eee2116fd 100644 --- a/.github/workflows/typescript-packages-unit-tests.yml +++ b/.github/workflows/typescript-packages-unit-tests.yml @@ -35,6 +35,7 @@ jobs: build: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: package: - "ens-utils" diff --git a/packages/ens-utils/tsconfig.json b/packages/ens-utils/tsconfig.json index 0d448fe85..914347590 100644 --- a/packages/ens-utils/tsconfig.json +++ b/packages/ens-utils/tsconfig.json @@ -11,7 +11,7 @@ "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "outDir": "./dist", - "rootDir": "./src", + // "rootDir": "./src" }, "exclude": ["node_modules"] } diff --git a/packages/nameguard-js/tsconfig.json b/packages/nameguard-js/tsconfig.json index 63b67c56f..db44e21aa 100644 --- a/packages/nameguard-js/tsconfig.json +++ b/packages/nameguard-js/tsconfig.json @@ -30,7 +30,10 @@ // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + "paths": { + "@namehash/nameguard": ["../nameguard-sdk/src"], + "@namehash/ens-utils": ["../ens-utils/src"] + }, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ // "types": [], /* Specify type package names to be included without being referenced in a source file. */ diff --git a/packages/nameguard-react/tsconfig.json b/packages/nameguard-react/tsconfig.json index eee0c30db..57ebff330 100644 --- a/packages/nameguard-react/tsconfig.json +++ b/packages/nameguard-react/tsconfig.json @@ -1,12 +1,16 @@ { "compilerOptions": { "outDir": "./dist", - "rootDir": "./src", + // "rootDir": "./src", "jsx": "react", "module": "ES2020", "moduleResolution": "node", "target": "ES2020", - "esModuleInterop": true + "esModuleInterop": true, + "paths": { + "@namehash/nameguard": ["../nameguard-sdk/src"], + "@namehash/ens-utils": ["../ens-utils/src"] + }, }, "include": ["src/**/*"] } diff --git a/packages/nameguard-sdk/tsconfig.json b/packages/nameguard-sdk/tsconfig.json index 2deaff0d0..9b492feff 100644 --- a/packages/nameguard-sdk/tsconfig.json +++ b/packages/nameguard-sdk/tsconfig.json @@ -9,7 +9,12 @@ "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "declaration": true, + "declarationMap": true, + "paths": { + "@namehash/ens-utils": ["../ens-utils/src"] + }, }, "exclude": ["node_modules"] } diff --git a/packages/namekit-react/tsconfig.json b/packages/namekit-react/tsconfig.json index 4b0d135bc..2bf0f5b9f 100644 --- a/packages/namekit-react/tsconfig.json +++ b/packages/namekit-react/tsconfig.json @@ -4,14 +4,17 @@ "jsx": "react", "module": "ES2020", "outDir": "./dist", - "rootDir": "./src", + // "rootDir": "./src", "moduleResolution": "bundler", "target": "ES2020", "resolveJsonModule": true, "isolatedModules": true, "esModuleInterop": true, "lib": ["dom", "dom.iterable", "esnext"], - "declaration": true + "declaration": true, + "paths": { + "@namehash/ens-utils": ["../ens-utils/src"] + }, }, "include": ["src/**/*"] }