Skip to content

Commit

Permalink
Hotfix/fix exporting (#134)
Browse files Browse the repository at this point in the history
* Fix exporting to explicitly export the type

* Add build step to catch this error in the future

* Fix linting

* Fix ci step
  • Loading branch information
nathanfranklin authored Apr 26, 2023
1 parent acaee97 commit 146e317
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,27 @@ jobs:
run: |
cd react
npm run lint
React-Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js for use with actions
uses: actions/setup-node@v1
with:
node-version: 16.x

- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: npm ci
run: |
cd react
npm ci
- name: Build
run: |
cd react
npm run build
9 changes: 7 additions & 2 deletions react/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
export { TileServerLayer } from './tileServerLayer';
export { Asset, Feature, FeatureClass, FeatureCollection } from './feature';
export type { TileServerLayer } from './tileServerLayer';
export type {
Asset,
Feature,
FeatureClass,
FeatureCollection,
} from './feature';

0 comments on commit 146e317

Please sign in to comment.