Skip to content

Commit

Permalink
0.2.2 - Updated imports and exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ponlawat-w committed Dec 10, 2023
1 parent 380d4de commit 34a5e8e
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 19 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ jobs:
run: |
git config --global user.name "ponlawat-w"
git config --global user.email "[email protected]"
git tag -fa "v${{ steps.get-package-version.outputs.VERSION }}" -m "v${{ steps.get-package-version.outputs.VERSION }}"
git tag -fa "v${{ steps.get-package-version.outputs.VERSION }}" -F ./CHANGES.md
git push --force origin v${{ steps.get-package-version.outputs.VERSION }}
- name: Release
run: gh release create v${{ steps.get-package-version.outputs.VERSION }} -t v${{ steps.get-package-version.outputs.VERSION }} --notes-from-tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ol-osmoverpass",
"type": "module",
"version": "0.2.1",
"version": "0.2.2",
"description": "OverLayers vector layer source for OpenStreetMap elements using Overpass API",
"main": "dist/index.js",
"keywords": [
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export { default as Overpass } from './overpass/api';
export { default as Overpass } from './overpass/api.js';

export {
default as OSMOverpass,
type OSMElementConverter
} from './overpass/osm';
} from './overpass/osm.js';

export {
type OSMElementType,
Expand All @@ -14,14 +14,14 @@ export {
type OSMRelation,
type OSMElement,
type OverpassResponse
} from './overpass/response';
} from './overpass/response.js';

export {
default as OSMOverpassSourceBase,
type LoaderSuccessFn,
type LoaderFailedFn,
type OSMOverpassSourceOptions
} from './source/base';
} from './source/base.js';

export { default as OSMOverpassNodeSource } from './source/node';
export { default as OSMOverpassWaySource } from './source/way';
export { default as OSMOverpassNodeSource } from './source/node.js';
export { default as OSMOverpassWaySource } from './source/way.js';
2 changes: 1 addition & 1 deletion src/overpass/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Extent } from 'ol/extent';
import type { OverpassResponse } from './response';
import type { OverpassResponse } from './response.d.ts';

/**
* Exception for not specifying OverpassAPI endpoint
Expand Down
2 changes: 1 addition & 1 deletion src/overpass/osm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Feature } from 'ol';
import { Point, LineString } from 'ol/geom';
import { transform, transformExtent, Projection } from 'ol/proj';
import OverpassAPI from './api';
import OverpassAPI from './api.js';
import type { Coordinate } from 'ol/coordinate';
import type { Extent } from 'ol/extent';
import type { Geometry } from 'ol/geom';
Expand Down
2 changes: 1 addition & 1 deletion src/source/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LineString, Point, Polygon } from 'ol/geom';
import { bbox } from 'ol/loadingstrategy';
import { Vector as VectorSource } from 'ol/source';
import { Style } from 'ol/style';
import OSMOverpass from '../overpass/osm';
import OSMOverpass from '../overpass/osm.js';
import type { Feature } from 'ol';
import type RBush from 'ol/structs/RBush';
import type { Projection } from 'ol/proj';
Expand Down
6 changes: 3 additions & 3 deletions src/source/node.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Feature } from 'ol';
import { Extent } from 'ol/extent';
import { Projection } from 'ol/proj';
import OSMOverpass from '../overpass/osm';
import OSMOverpassSourceBase from './base';
import OSMOverpass from '../overpass/osm.js';
import OSMOverpassSourceBase from './base.js';
import type { Extent } from 'ol/extent';
import type { Point } from 'ol/geom';

/**
Expand Down
6 changes: 3 additions & 3 deletions src/source/way.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Feature } from 'ol';
import { Extent } from 'ol/extent';
import { LineString } from 'ol/geom';
import { Projection } from 'ol/proj';
import OSMOverpass from '../overpass/osm';
import OSMOverpassSourceBase from './base';
import OSMOverpass from '../overpass/osm.js';
import OSMOverpassSourceBase from './base.js';
import type { Extent } from 'ol/extent';

/**
* OSMOverpassSource for Ways
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"moduleResolution": "Node",
"target": "ES2020",
"rootDir": "./src",
"verbatimModuleSyntax": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down

0 comments on commit 34a5e8e

Please sign in to comment.