diff --git a/index.ts b/dynamocsv.ts similarity index 100% rename from index.ts rename to dynamocsv.ts diff --git a/package.json b/package.json index 6eac45a..4bff725 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,12 @@ { "name": "dynamocsv", - "version": "1.0.3", + "version": "1.1.1", "description": "Export result of dynamodb scans and queries to Node stream", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "main": "dist/dynamocsv.js", + "typings": "dist/types/dynamocsv.d.ts", + "files": [ + "dist" + ], "scripts": { "build": "tsc", "prepare": "tsc", @@ -45,7 +48,7 @@ "dependencies": { "@aws-sdk/client-dynamodb": "^3.13.1", "@aws-sdk/util-dynamodb": "^3.13.1", - "dynadash": "^1.0.5", + "dynadash": "^1.1.0", "papaparse": "^5.3.0" } } diff --git a/tsconfig.json b/tsconfig.json index 00a9431..e49a13d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,10 @@ "resolveJsonModule": true, "isolatedModules": true, "strict": true, + "declarationDir": "dist/types", + "typeRoots": [ + "node_modules/@types" + ], "outDir": "./dist" }, "exclude": ["node_modules", "dist", "doc"]