From a564bc9d5fc49f115bb72f8833918538b0d3da3d Mon Sep 17 00:00:00 2001 From: RambhauWaykar Date: Fri, 6 Sep 2024 17:35:52 +0530 Subject: [PATCH] Fixing types and dev dependency issue (#26) * fix: added github workflow * fix: added specs workflow for PR * fix: fixed exception messages for tests * fix: updated package version * fix: updated package version * fix: reverted package version * fix: fixing build issue * fix: fixing build issue * fix: fixing build issue * fix: fixing type issues * fix: fixing build issues * fix: fixing build issues * fix: fixing type issues * fix: fixing type issues * fix: fixing type issues * fix: fixing the types and dev dependencies issues --- package.json | 6 +++--- src/{mapbox-togeojson.ts => mapbox-togeojson.d.ts} | 0 tsconfig.json | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) rename src/{mapbox-togeojson.ts => mapbox-togeojson.d.ts} (100%) 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,