diff --git a/.gitignore b/.gitignore index 1a47d196..d4864ebb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ node_modules coverage projs.js .DS_STORE -dist +dist/* +!dist/index.d.ts .nyc_output/ diff --git a/bower.json b/bower.json index 3ba40d14..1b889b7b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "proj4", - "version": "2.19.9-alpha", + "version": "2.19.11-alpha", "description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", "homepage": "https://github.com/proj4js/proj4js", "main": "dist/proj4.js", diff --git a/component.json b/component.json index 8209b3cd..885f8295 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "proj4", - "version": "2.19.9-alpha", + "version": "2.19.11-alpha", "description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", "repo": "proj4js/proj4js", "keywords": [ diff --git a/dist/.gitignore b/dist/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 00000000..af8e7bed --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,6 @@ +// Legacy type definitions for CommonJS support +import proj4 from './lib/'; +export type { ProjectionDefinition, TemplateCoordinates, InterfaceCoordinates, Converter, DatumDefinition } from './lib/'; +//@ts-ignore +export = proj4; +export as namespace proj4; diff --git a/package-lock.json b/package-lock.json index 0c959656..e425d593 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "proj4", - "version": "2.19.9-alpha", + "version": "2.19.11-alpha", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "proj4", - "version": "2.19.9-alpha", + "version": "2.19.11-alpha", "license": "MIT", "dependencies": { "mgrs": "1.0.0", diff --git a/package.json b/package.json index bef6dcc1..02b8f9aa 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "proj4", - "version": "2.19.9-alpha", + "version": "2.19.11-alpha", "description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", "homepage": "https://proj4js.github.io/proj4js/", "main": "dist/proj4-src.js", "module": "lib/index.js", - "types": "dist/lib/index.d.ts", + "types": "dist/index.d.ts", "funding": "https://github.com/sponsors/ahocevar", "scripts": { "prepare": "npm run test",
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: