diff --git a/package.json b/package.json index f7abcb5..55f5fc0 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "@syngenta/convert-to-geojson", - "version": "1.0.6", + "version": "1.0.7", "description": "A common package to convert different shape files to geojson", "main": "dist/index.js", - "types": "./dist/index.d.ts", + "types": "dist/index.d.ts", "homepage": "", "keywords": [], "author": "Ram Waykar ", @@ -17,7 +17,7 @@ "test": "jest --ci --coverage --reporters=default --reporters=jest-junit --max-workers=2 --testTimeout=300000 --verbose", "lint": "eslint src/**/*.ts", "format": "eslint src/**/*.ts --fix", - "build": "npm run lint && tsc --declaration" + "build": "npm run lint && tsc --declaration --declarationMap --sourceMap" }, "dependencies": { "@mapbox/togeojson": "^0.16.2", diff --git a/src/mapbox-togeojson.ts b/src/mapbox-togeojson.d.ts similarity index 100% rename from src/mapbox-togeojson.ts rename to src/mapbox-togeojson.d.ts diff --git a/tsconfig.json b/tsconfig.json index 212c7f3..b3c285f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,10 +2,9 @@ "compilerOptions": { "strict": true, "target": "ES6", - "lib": ["DOM", "ES6", "DOM.Iterable", "ScriptHost", "ES2016.Array.Include"], "module": "preserve", "outDir": "dist", - "sourceMap": false, + "sourceMap": true, "allowSyntheticDefaultImports": true, "esModuleInterop": true, "forceConsistentCasingInFileNames":true,