diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index 6b1eed8..56773ff 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -12,7 +12,8 @@ "test": "yarn test:unit", "build:cjs": "tsc -p tsconfig.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:cjs && yarn build:es", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4" }, "main": "./dist-cjs/index.js", diff --git a/clients/client-s3/tsconfig.es.json b/clients/client-s3/tsconfig.es.json index d67a49e..4c72364 100644 --- a/clients/client-s3/tsconfig.es.json +++ b/clients/client-s3/tsconfig.es.json @@ -4,8 +4,6 @@ "target": "es5", "module": "esnext", "moduleResolution": "node", - "declaration": true, - "declarationDir": "dist-types", "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], "outDir": "dist-es" } diff --git a/clients/client-s3/tsconfig.json b/clients/client-s3/tsconfig.json index cd54095..04f8cc2 100644 --- a/clients/client-s3/tsconfig.json +++ b/clients/client-s3/tsconfig.json @@ -12,6 +12,7 @@ "incremental": true, "resolveJsonModule": true, "esModuleInterop": true, + "removeComments": true, "outDir": "dist-cjs", "types": ["mocha", "node"] }, diff --git a/clients/client-s3/tsconfig.types.json b/clients/client-s3/tsconfig.types.json new file mode 100644 index 0000000..d871f36 --- /dev/null +++ b/clients/client-s3/tsconfig.types.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "esModuleInterop": true, + "declaration": true, + "declarationDir": "dist-types", + "emitDeclarationOnly": true + }, + "exclude": ["test/**/*", "src/**/*.spec.ts"] +}