|
3 | 3 | "version": "3.8.0",
|
4 | 4 | "description": "Display GeoTIFFs and soon other types of raster on your Leaflet Map",
|
5 | 5 | "type": "module",
|
6 |
| - "main": "dist/webpack/bundle/georaster-layer-for-leaflet.min.js", |
7 |
| - "module": "dist/babel/esm/georaster-layer-for-leaflet.js", |
| 6 | + "main": "dist/v3/webpack/bundle/georaster-layer-for-leaflet.min.js", |
| 7 | + "module": "dist/v3/babel/esm/georaster-layer-for-leaflet.js", |
8 | 8 | "exports": {
|
9 | 9 | "./package.json": "./package.json",
|
10 | 10 | ".": {
|
11 |
| - "import": "./dist/babel/esm/georaster-layer-for-leaflet.js", |
12 |
| - "require": "./dist/babel/cjs/georaster-layer-for-leaflet.js" |
| 11 | + "import": "./dist/v3/babel/esm/georaster-layer-for-leaflet.js", |
| 12 | + "require": "./dist/v3/babel/cjs/georaster-layer-for-leaflet.js" |
13 | 13 | }
|
14 | 14 | },
|
15 |
| - "browser": "dist/webpack/bundle/georaster-layer-for-leaflet.min.js", |
16 |
| - "types": "dist/ts/types/georaster-layer-for-leaflet.d.ts", |
17 |
| - "unpkg": "dist/webpack/bundle/georaster-layer-for-leaflet.min.js", |
18 |
| - "jsdelivr": "dist/webpack/bundle/georaster-layer-for-leaflet.min.js", |
| 15 | + "browser": "dist/v3/webpack/bundle/georaster-layer-for-leaflet.min.js", |
| 16 | + "types": "dist/v3/ts/types/georaster-layer-for-leaflet.d.ts", |
| 17 | + "unpkg": "dist/v3/webpack/bundle/georaster-layer-for-leaflet.min.js", |
| 18 | + "jsdelivr": "dist/v3/webpack/bundle/georaster-layer-for-leaflet.min.js", |
19 | 19 | "scripts": {
|
20 | 20 | "clean": "rimraf dist",
|
21 |
| - "build:ts:source": "npx mkdirp ./dist/ts/source/. && cp -r ./src/* ./dist/ts/source/.", |
| 21 | + "b": "npm run build", |
| 22 | + "build:ts:source": "npx mkdirp ./dist/v3/ts/source/. && cp -r ./src/* ./dist/v3/ts/source/.", |
22 | 23 | "build:ts:types": "tsc --emitDeclarationOnly",
|
23 | 24 | "build:babel": "npm run build:babel:esm && npm run build:babel:cjs",
|
24 |
| - "build:babel:esm": "npx babel --extensions \".ts\" --plugins @babel/plugin-proposal-export-namespace-from --plugins @babel/plugin-proposal-optional-chaining --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir ./dist/babel/esm", |
25 |
| - "build:babel:cjs": "npx babel --extensions \".ts\" --plugins @babel/plugin-transform-modules-commonjs --plugins @babel/plugin-proposal-optional-chaining --plugins @babel/plugin-proposal-export-namespace-from --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir dist/babel/cjs", |
26 |
| - "build:webpack:bundle": "WEBPACK_OUTPUT_PATH=\"$PWD/dist/webpack/bundle/\" webpack", |
27 |
| - "build:webpack:lite": "LITE=true WEBPACK_OUTPUT_PATH=\"$PWD/dist/webpack/lite/\" webpack", |
| 25 | + "build:babel:esm": "npx babel --extensions \".ts\" --plugins @babel/plugin-proposal-export-namespace-from --plugins @babel/plugin-proposal-optional-chaining --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir ./dist/v3/babel/esm", |
| 26 | + "build:babel:cjs": "npx babel --extensions \".ts\" --plugins @babel/plugin-transform-modules-commonjs --plugins @babel/plugin-proposal-optional-chaining --plugins @babel/plugin-proposal-export-namespace-from --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir dist/v3/babel/cjs", |
| 27 | + "build:webpack:bundle": "WEBPACK_OUTPUT_PATH=\"$PWD/dist/v3/webpack/bundle/\" webpack", |
| 28 | + "build:webpack:lite": "LITE=true WEBPACK_OUTPUT_PATH=\"$PWD/dist/v3/webpack/lite/\" webpack", |
28 | 29 | "copy:legacy": "npm run copy:legacy:min && npm run copy:legacy:lite && npm run copy:legacy:cjs && npm run copy:legacy:esm && npm run copy:legacy:types",
|
29 |
| - "copy:legacy:min": "cp ./dist/webpack/bundle/* ./dist/.", |
30 |
| - "copy:legacy:lite": "cp ./dist/webpack/lite/* ./dist/.", |
31 |
| - "copy:legacy:cjs": "cp ./dist/babel/cjs/georaster-layer-for-leaflet.js ./dist/georaster-layer-for-leaflet.bundle.js", |
32 |
| - "copy:legacy:esm": "cp ./dist/babel/esm/georaster-layer-for-leaflet.js ./dist/georaster-layer-for-leaflet.js", |
33 |
| - "copy:legacy:types": "cp -r ./dist/ts/types/* ./dist/.", |
| 30 | + "copy:legacy:min": "cp ./dist/v3/webpack/bundle/* ./dist/.", |
| 31 | + "copy:legacy:lite": "cp ./dist/v3/webpack/lite/* ./dist/.", |
| 32 | + "copy:legacy:cjs": "cp ./dist/v3/babel/cjs/georaster-layer-for-leaflet.js ./dist/georaster-layer-for-leaflet.bundle.js", |
| 33 | + "copy:legacy:esm": "cp ./dist/v3/babel/esm/georaster-layer-for-leaflet.js ./dist/georaster-layer-for-leaflet.js", |
| 34 | + "copy:legacy:types": "cp -r ./dist/v3/ts/types/* ./dist/.", |
34 | 35 | "build": "npm run clean && npm run build:ts:source && npm run build:ts:types && npm run build:babel:esm && npm run build:babel:cjs && npm run build:webpack:bundle && npm run build:webpack:lite && npm run copy:legacy",
|
35 | 36 | "dev": "concurrently \"npm run serve\" \"npm run build:webpack:bundle:old -- --watch\" ",
|
36 | 37 | "f": "npm run format",
|
|
40 | 41 | "prep-legacy": "./prep-legacy.sh",
|
41 | 42 | "test": "echo 'to set library, run dev and serve and open the html files in test folder on localhost'",
|
42 | 43 | "validate": "npm run lint && npm run format && npm run check-types",
|
43 |
| - "serve": "HOST=0.0.0.0 http-server --cors" |
| 44 | + "serve": "HOST=0.0.0.0 npx http-server --cors" |
44 | 45 | },
|
45 | 46 | "repository": {
|
46 | 47 | "type": "git",
|
|
65 | 66 | },
|
66 | 67 | "homepage": "https://github.com/GeoTIFF/georaster-layer-for-leaflet#readme",
|
67 | 68 | "dependencies": {
|
| 69 | + "@types/geojson": "^7946.0.10", |
| 70 | + "@types/node": "^18.6.4", |
68 | 71 | "chroma-js": "^1.4.1",
|
69 |
| - "geo-extent": "^0.9.0", |
| 72 | + "geo-extent": "^0.10.0", |
70 | 73 | "geocanvas": "^0.3.1",
|
71 |
| - "pixel-utils": "^0.4.0", |
72 |
| - "proj4-fully-loaded": "^0.0.4", |
| 74 | + "pixel-utils": "^0.7.0", |
| 75 | + "proj4-fully-loaded": "^0.1.0", |
73 | 76 | "regenerator-runtime": "^0.13.9",
|
| 77 | + "reproject-bbox": "^0.4.0", |
74 | 78 | "snap-bbox": "^0.2.0",
|
75 | 79 | "utm-utils": "^0.1.0"
|
76 | 80 | },
|
77 | 81 | "devDependencies": {
|
78 |
| - "@babel/cli": "^7.18.9", |
79 |
| - "@babel/core": "^7.18.9", |
| 82 | + "@babel/cli": "^7.18.10", |
| 83 | + "@babel/core": "^7.18.10", |
80 | 84 | "@babel/plugin-transform-template-literals": "^7.18.9",
|
81 |
| - "@babel/preset-env": "^7.18.9", |
| 85 | + "@babel/preset-env": "^7.18.10", |
82 | 86 | "@babel/preset-typescript": "^7.18.6",
|
83 | 87 | "@types/chroma-js": "^2.1.4",
|
84 | 88 | "@types/leaflet": "^1.7.11",
|
85 |
| - "@types/node": "^14.18.22", |
86 | 89 | "@typescript-eslint/eslint-plugin": "^4.33.0",
|
87 | 90 | "@typescript-eslint/parser": "^4.33.0",
|
88 | 91 | "babel-loader": "^8.2.5",
|
|
91 | 94 | "eslint": "^7.32.0",
|
92 | 95 | "eslint-config-prettier": "^7.2.0",
|
93 | 96 | "eslint-plugin-prettier": "^3.4.1",
|
94 |
| - "http-server": "^0.12.3", |
| 97 | + "geojson": "^0.5.0", |
95 | 98 | "null-loader": "^4.0.1",
|
96 | 99 | "prettier": "^2.7.1",
|
97 | 100 | "rimraf": "^3.0.2",
|
|
0 commit comments