@map-colonies/mc-utils 4.0.1 → 4.0.2

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.
@@ -1,4 +1,4 @@
1
- import { BBox2d } from '@src/models/types';
1
+ import { BBox2d } from '../models/types';
2
2
  import { ITile, ITileRange } from '../models/interfaces/geo/iTile';
3
3
  /**
4
4
  * rounds bbox to grid
@@ -1,5 +1,5 @@
1
1
  import { Feature, MultiPolygon, Polygon } from '@turf/turf';
2
- import { BBox2d } from '@src/models/types';
2
+ import { BBox2d } from '../models/types';
3
3
  import { ITile } from '../models/interfaces/geo/iTile';
4
4
  import { TileOrigin } from '../models/enums/geo/tileOrigin';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { Feature, MultiPolygon, Polygon } from '@turf/turf';
2
- import { BBox2d } from '@src/models/types';
2
+ import { BBox2d } from '../models/types';
3
3
  import { ITile, ITileRange } from '../models/interfaces/geo/iTile';
4
4
  /**
5
5
  * class for generating and decoding tile hashes
@@ -1,5 +1,5 @@
1
1
  import { Feature, FeatureCollection, MultiPolygon, Polygon } from '@turf/turf';
2
- import { BBox2d } from '@src/models/types';
2
+ import { BBox2d } from '../models/types';
3
3
  import { ITile, ITileRange } from '../models/interfaces/geo/iTile';
4
4
  /**
5
5
  * calculates tile size (resolution) in degrees
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@map-colonies/mc-utils",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "type": "commonjs",
5
5
  "description": "MapColonies utility library for http, geo, arrays and interfaces",
6
6
  "main": "./dist/index.js",
@@ -14,7 +14,7 @@
14
14
  "lint:fix": "eslint --fix .",
15
15
  "test": "npm run test:unit",
16
16
  "prebuild": "npm run clean",
17
- "build": "tsc --project tsconfig.build.json",
17
+ "build": "tsc --project tsconfig.build.json && tsc-alias",
18
18
  "start": "npm run build && cd dist && node ./index.js",
19
19
  "clean": "rimraf dist",
20
20
  "prepack": "npm run build",
@@ -58,6 +58,7 @@
58
58
  "rimraf": "^6.0.1",
59
59
  "ts-jest": "^29.4.0",
60
60
  "ts-node": "^10.9.2",
61
+ "tsc-alias": "^1.8.16",
61
62
  "typedoc": "^0.28.7",
62
63
  "typescript": "^5.8.3"
63
64
  },