@turf/bbox 6.2.0-alpha.1 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/index.js CHANGED
@@ -31,5 +31,5 @@ function bbox(geojson) {
31
31
  });
32
32
  return result;
33
33
  }
34
- bbox['default'] = bbox;
34
+ bbox["default"] = bbox;
35
35
  export default bbox;
@@ -0,0 +1 @@
1
+ {"type":"module"}
package/dist/js/index.js CHANGED
@@ -33,5 +33,5 @@ function bbox(geojson) {
33
33
  });
34
34
  return result;
35
35
  }
36
- bbox['default'] = bbox;
36
+ bbox["default"] = bbox;
37
37
  exports.default = bbox;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/bbox",
3
- "version": "6.2.0-alpha.1",
3
+ "version": "6.3.0",
4
4
  "description": "turf bbox module",
5
5
  "author": "Turf Authors",
6
6
  "license": "MIT",
@@ -25,31 +25,39 @@
25
25
  ],
26
26
  "main": "dist/js/index.js",
27
27
  "module": "dist/es/index.js",
28
+ "exports": {
29
+ "./package.json": "./package.json",
30
+ ".": {
31
+ "import": "./dist/es/index.js",
32
+ "require": "./dist/js/index.js"
33
+ }
34
+ },
28
35
  "types": "dist/js/index.d.ts",
29
36
  "sideEffects": false,
30
37
  "files": [
31
38
  "dist"
32
39
  ],
33
40
  "scripts": {
34
- "bench": "npm-run-all prepare bench:run",
35
- "bench:run": "node bench.js",
41
+ "bench": "ts-node bench.js",
42
+ "build": "npm-run-all build:*",
43
+ "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
44
+ "build:js": "tsc",
36
45
  "docs": "node ../../scripts/generate-readmes",
37
- "prepare": "npm-run-all prepare:*",
38
- "prepare:es": "tsc --outDir dist/es --module esnext --declaration false",
39
- "prepare:js": "tsc",
40
- "test": "npm-run-all prepare test:*",
41
- "test:tape": "node -r esm test.js"
46
+ "test": "npm-run-all test:*",
47
+ "test:tape": "ts-node -r esm test.js"
42
48
  },
43
49
  "devDependencies": {
44
50
  "@types/tape": "*",
45
51
  "benchmark": "*",
52
+ "npm-run-all": "*",
46
53
  "tape": "*",
54
+ "ts-node": "*",
47
55
  "tslint": "*",
48
56
  "typescript": "*"
49
57
  },
50
58
  "dependencies": {
51
- "@turf/helpers": "^6.2.0-alpha.1",
52
- "@turf/meta": "^6.2.0-alpha.1"
59
+ "@turf/helpers": "^6.3.0",
60
+ "@turf/meta": "^6.3.0"
53
61
  },
54
- "gitHead": "fc519c045a8931c1e14eab9160a7e28391f8da02"
62
+ "gitHead": "57c8877e1e2d67effc2cdd23385c02b2a6615a49"
55
63
  }