Skip to content

Commit

Permalink
Merge pull request #31 from camptocamp/add-missing-esbuild-sourcemaps
Browse files Browse the repository at this point in the history
Add missing sourcemaps in esbuild
  • Loading branch information
jahow authored Feb 28, 2024
2 parents c17db3d + ed42e38 commit 5e70884
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"format:check": "prettier --check .",
"lint": "eslint src/**/*.ts",
"lint:fix": "npm run lint -- --fix",
"build": "vite build && esbuild $(find ./src -name \"*.ts\" -type f -not -path '*worker/index.ts' -not -path '*.spec.ts') --outdir=./dist --platform=neutral --format=esm",
"build": "vite build && esbuild $(find ./src -name \"*.ts\" -type f -not -path '*worker/index.ts' -not -path '*.spec.ts') --outdir=./dist --platform=neutral --format=esm --sourcemap",
"prepublishOnly": "npm run typecheck && npm test && npm run build",
"typecheck": "tsc --noEmit",
"docs": "typedoc src/index.ts --json app/src/data/api.json --pretty --excludePrivate"
Expand Down
26 changes: 13 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { default as WfsEndpoint } from './wfs/endpoint';
export { default as WfsEndpoint } from './wfs/endpoint.js';
export type {
WfsVersion,
WfsFeatureWithProps,
Expand All @@ -10,36 +10,36 @@ export type {
WfsFeatureTypePropDetails,
WfsFeatureTypePropsDetails,
WfsFeatureTypeUniqueValue,
} from './wfs/model';
export { default as WmsEndpoint } from './wms/endpoint';
} from './wfs/model.js';
export { default as WmsEndpoint } from './wms/endpoint.js';
export type {
WmsLayerFull,
WmsVersion,
WmsLayerSummary,
WmtsLayerAttribution,
} from './wms/model';
export { default as WmtsEndpoint } from './wmts/endpoint';
} from './wms/model.js';
export { default as WmtsEndpoint } from './wmts/endpoint.js';
export type {
WmtsLayerDimensionValue,
WmtsLayerResourceLink,
WmtsEndpointInfo,
WmtsLayer,
WmtsMatrixSet,
} from './wmts/model';
} from './wmts/model.js';
export type {
LayerStyle,
BoundingBox,
FetchOptions,
GenericEndpointInfo,
} from './shared/models';
export { default as OgcApiEndpoint } from './ogc-api/endpoint';
export * from './ogc-api/model';
export { useCache } from './shared/cache';
} from './shared/models.js';
export { default as OgcApiEndpoint } from './ogc-api/endpoint.js';
export * from './ogc-api/model.js';
export { useCache } from './shared/cache.js';
export {
sharedFetch,
setFetchOptions,
resetFetchOptions,
} from './shared/http-utils';
} from './shared/http-utils.js';

export { enableFallbackWithoutWorker } from './worker/index';
import './worker-fallback';
export { enableFallbackWithoutWorker } from './worker/index.js';
import './worker-fallback/index.js';

0 comments on commit 5e70884

Please sign in to comment.