From aaeffccabeeb1847098ea0184f53fd2f5f30b3ae Mon Sep 17 00:00:00 2001 From: Rowan Winsemius Date: Wed, 13 Apr 2022 16:13:32 +1000 Subject: [PATCH 1/2] Tidy up the package.json --- package.json | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 7211d3a..6804eed 100644 --- a/package.json +++ b/package.json @@ -2,32 +2,18 @@ "name": "stac-layer", "version": "0.10.1", "description": "Visualize a STAC Item or Collection on a Leaflet Map", - "main": "dist/stac-layer.min.js", - "module": "dist/stac-layer.min.js", + "type": "module", + "main": "src/index.js", + "unpkg": "dist/stac-layer.min.js", + "module": "src/index.js", + "exports": "./src/index.js", "directories": { "test": "test" }, "files": [ - "src/index.js", - "src/data.js", - "src/utils/bboxLayer.js", - "src/utils/bboxToLatLngBounds.js", - "src/utils/create-georaster-layer.js", - "src/utils/find-asset.js", - "src/utils/get-bounding-box.js", - "src/utils/image-overlay.js", - "src/utils/is-bounding-box.js", - "src/utils/is-relative.js", - "src/utils/pick.js", - "src/utils/tile-layer.js", - "src/utils/titiler.js", - "src/utils/titiler-layer.js", - "src/utils/to-absolute.js", - "src/utils/with-timeout.js", - "dist/stac-layer.min.js", - "dist/stac-layer.min.js.map" + "src", + "dist" ], - "type": "module", "scripts": { "build": "webpack", "dev": "concurrently \"npx snowpack build --polyfill-node --watch\" \"cd build && npx http-server\"", From 521df34721d8523fee79f7fe8f4a875f1c7d4f48 Mon Sep 17 00:00:00 2001 From: Rowan Winsemius Date: Mon, 9 May 2022 10:39:49 +1000 Subject: [PATCH 2/2] Rejig package.json again --- package-lock.json | 62 +++++++++++++++++++++++------------------------ package.json | 24 +++++++++++++++--- 2 files changed, 51 insertions(+), 35 deletions(-) diff --git a/package-lock.json b/package-lock.json index 26448eb..bf1af78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "http-server": "^14.1.0", "snowpack": "^3.7.1", "webpack": "^5.42.0", - "webpack-cli": "^4.7.2" + "webpack-cli": "^4.9.2" } }, "node_modules/@babel/code-frame": { @@ -2411,9 +2411,9 @@ } }, "node_modules/@webpack-cli/configtest": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.0.tgz", - "integrity": "sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.1.tgz", + "integrity": "sha512-1FBc1f9G4P/AxMqIgfZgeOTuRnwZMten8E7zap5zgpPInnCrP8D4Q81+4CWIch8i/Nf7nXjP0v6CjjbHOrXhKg==", "dev": true, "peerDependencies": { "webpack": "4.x.x || 5.x.x", @@ -2421,9 +2421,9 @@ } }, "node_modules/@webpack-cli/info": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.0.tgz", - "integrity": "sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.1.tgz", + "integrity": "sha512-PKVGmazEq3oAo46Q63tpMr4HipI3OPfP7LiNOEJg963RMgT0rqheag28NCML0o3GIzA3DmxP1ZIAv9oTX1CUIA==", "dev": true, "dependencies": { "envinfo": "^7.7.3" @@ -2433,9 +2433,9 @@ } }, "node_modules/@webpack-cli/serve": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.0.tgz", - "integrity": "sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.1.tgz", + "integrity": "sha512-gNGTiTrjEVQ0OcVnzsRSqTxaBSr+dmTfm+qJsCDluky8uhdLWep7Gcr62QsAKHTMxjCS/8nEITsmFAhfIx+QSw==", "dev": true, "peerDependencies": { "webpack-cli": "4.x.x" @@ -11761,15 +11761,15 @@ } }, "node_modules/webpack-cli": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.1.tgz", - "integrity": "sha512-JYRFVuyFpzDxMDB+v/nanUdQYcZtqFPGzmlW4s+UkPMFhSpfRNmf1z4AwYcHJVdvEFAM7FFCQdNTpsBYhDLusQ==", + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.2.tgz", + "integrity": "sha512-m3/AACnBBzK/kMTcxWHcZFPrw/eQuY4Df1TxvIWfWM2x7mRqBQCqKEd96oCUa9jkapLBaFfRce33eGDb4Pr7YQ==", "dev": true, "dependencies": { "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.1.0", - "@webpack-cli/info": "^1.4.0", - "@webpack-cli/serve": "^1.6.0", + "@webpack-cli/configtest": "^1.1.1", + "@webpack-cli/info": "^1.4.1", + "@webpack-cli/serve": "^1.6.1", "colorette": "^2.0.14", "commander": "^7.0.0", "execa": "^5.0.0", @@ -13987,25 +13987,25 @@ } }, "@webpack-cli/configtest": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.0.tgz", - "integrity": "sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.1.tgz", + "integrity": "sha512-1FBc1f9G4P/AxMqIgfZgeOTuRnwZMten8E7zap5zgpPInnCrP8D4Q81+4CWIch8i/Nf7nXjP0v6CjjbHOrXhKg==", "dev": true, "requires": {} }, "@webpack-cli/info": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.0.tgz", - "integrity": "sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.1.tgz", + "integrity": "sha512-PKVGmazEq3oAo46Q63tpMr4HipI3OPfP7LiNOEJg963RMgT0rqheag28NCML0o3GIzA3DmxP1ZIAv9oTX1CUIA==", "dev": true, "requires": { "envinfo": "^7.7.3" } }, "@webpack-cli/serve": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.0.tgz", - "integrity": "sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.1.tgz", + "integrity": "sha512-gNGTiTrjEVQ0OcVnzsRSqTxaBSr+dmTfm+qJsCDluky8uhdLWep7Gcr62QsAKHTMxjCS/8nEITsmFAhfIx+QSw==", "dev": true, "requires": {} }, @@ -21439,15 +21439,15 @@ } }, "webpack-cli": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.1.tgz", - "integrity": "sha512-JYRFVuyFpzDxMDB+v/nanUdQYcZtqFPGzmlW4s+UkPMFhSpfRNmf1z4AwYcHJVdvEFAM7FFCQdNTpsBYhDLusQ==", + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.2.tgz", + "integrity": "sha512-m3/AACnBBzK/kMTcxWHcZFPrw/eQuY4Df1TxvIWfWM2x7mRqBQCqKEd96oCUa9jkapLBaFfRce33eGDb4Pr7YQ==", "dev": true, "requires": { "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.1.0", - "@webpack-cli/info": "^1.4.0", - "@webpack-cli/serve": "^1.6.0", + "@webpack-cli/configtest": "^1.1.1", + "@webpack-cli/info": "^1.4.1", + "@webpack-cli/serve": "^1.6.1", "colorette": "^2.0.14", "commander": "^7.0.0", "execa": "^5.0.0", diff --git a/package.json b/package.json index 6804eed..7fa38e4 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,31 @@ "description": "Visualize a STAC Item or Collection on a Leaflet Map", "type": "module", "main": "src/index.js", - "unpkg": "dist/stac-layer.min.js", + "browser": "dist/stac-layer.min.js", "module": "src/index.js", "exports": "./src/index.js", "directories": { "test": "test" }, "files": [ - "src", - "dist" + "src/index.js", + "src/data.js", + "src/utils/bboxLayer.js", + "src/utils/bboxToLatLngBounds.js", + "src/utils/create-georaster-layer.js", + "src/utils/find-asset.js", + "src/utils/get-bounding-box.js", + "src/utils/image-overlay.js", + "src/utils/is-bounding-box.js", + "src/utils/is-relative.js", + "src/utils/pick.js", + "src/utils/tile-layer.js", + "src/utils/titiler.js", + "src/utils/titiler-layer.js", + "src/utils/to-absolute.js", + "src/utils/with-timeout.js", + "dist/stac-layer.min.js", + "dist/stac-layer.min.js.map" ], "scripts": { "build": "webpack", @@ -66,6 +82,6 @@ "http-server": "^14.1.0", "snowpack": "^3.7.1", "webpack": "^5.42.0", - "webpack-cli": "^4.7.2" + "webpack-cli": "^4.9.2" } }