Skip to content

Commit

Permalink
chore: ts references
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez committed Oct 22, 2024
1 parent c9709e0 commit cedaa68
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 11 deletions.
10 changes: 5 additions & 5 deletions packages/issuer-sdk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
],
"exports": {
".": {
"types": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./create-issuer-config": {
"types": "./src/create-issuer-config.ts",
"types": "./dist/create-issuer-config.d.ts",
"import": "./dist/create-issuer-config.js"
},
"./human": {
"types": "./src/human.ts",
"types": "./dist/human.d.ts",
"import": "./dist/human.js"
},
"./credentials": {
"types": "./src/credentials.ts",
"types": "./dist/credentials.d.ts",
"import": "./dist/credentials.js"
}
},
Expand All @@ -47,7 +47,6 @@
"test:build": "pnpx publint --strict"
},
"devDependencies": {
"@idos-network/kwil-nep413-signer": "workspace:*",
"@idos-network/idos-sdk-types": "workspace:*",
"@release-it/keep-a-changelog": "^5.0.0",
"clean-package": "^2.2.0",
Expand All @@ -57,6 +56,7 @@
"vitest": "^0.31.4"
},
"dependencies": {
"@idos-network/kwil-nep413-signer": "workspace:*",
"@kwilteam/kwil-js": "0.7.1",
"@stablelib/base64": "^1.0.1",
"@stablelib/utf8": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/issuer-sdk-js/src/credentials.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as base64 from "@stablelib/base64";
import * as utf8Codec from "@stablelib/utf8";
import type { idOSCredential } from "../../types";
import type { IssuerConfig } from "./create-issuer-config";
import { createActionInput, encrypt, ensureEntityId } from "./internal";
import type { idOSCredential } from "./types";

export interface CreateCredentialReqParams extends Omit<idOSCredential, "id" | "original_id"> {
id?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/issuer-sdk-js/src/human.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { idOSHuman, idOSWallet } from "./../../types";
import type { IssuerConfig } from "./create-issuer-config";
import { createActionInput, ensureEntityId } from "./internal";
import type { idOSHuman, idOSWallet } from "./types";

export interface CreateProfileReqParams extends Omit<idOSHuman, "id"> {
id?: string;
Expand Down
1 change: 0 additions & 1 deletion packages/issuer-sdk-js/src/types.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/issuer-sdk-js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"noFallthroughCasesInSwitch": true,
"baseUrl": "."
},
"include": ["./src/**/*.ts"]
"include": ["./src/**/*.ts"],
"references": [{ "path": "../types" }, { "path": "../kwil-nep413-signer" }]
}
2 changes: 1 addition & 1 deletion packages/issuer-sdk-js/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ export default defineConfig({
"./src/create-issuer-config.ts",
"./src/human.ts",
"./src/credentials.ts",
"./src/types.ts",
],
splitting: false,
sourcemap: true,
clean: true,
format: ["esm"],
outDir: "./dist",
bundle: true,
dts: true,
noExternal: ["@idos-network/kwil-nep413-signer", "@idos-network/idos-sdk-types"],
});
2 changes: 1 addition & 1 deletion packages/kwil-nep413-signer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"outDir": "./dist",
"composite": true,
"declaration": true,
"declarationMap": true,
"declarationDir": "./dist/types",
Expand All @@ -12,7 +13,6 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
20 changes: 20 additions & 0 deletions packages/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "ESNext",
"composite": true,
"lib": ["ESNext"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"baseUrl": "."
},
"include": ["./src/**/*.ts"]
}

0 comments on commit cedaa68

Please sign in to comment.