diff --git a/package.json b/package.json index 93129181..88313512 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "A TypeScript SDK built with CosmJS to interact with cheqd network ledger", "licence": "Apache-2.0", "author": "Cheqd Foundation Limited (https://github.com/cheqd)", - "main": "src/index.ts", + "source": "src/index.ts", + "main": "build/index.js", + "types": "build/index.d.ts", "scripts": { "test": "jest --passWithNoTests", "test:watch": "jest --passWithNoTests --watch", diff --git a/tsconfig.json b/tsconfig.json index 57547a5e..8178b65c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,9 +10,9 @@ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "build", /* Redirect output structure to the directory. */ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */