Skip to content

Commit

Permalink
Export constants and types from basemaps/shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed Nov 2, 2023
1 parent b6433d7 commit 6264411
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/cli/config/action.import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import fetch from 'node-fetch';
import { invalidateCache } from '../util.js';
import { Q, Updater } from './config.update.js';
import { FeatureCollection } from 'geojson';
import { CogJobJson } from '@basemaps/shared/build/cog/types.js';
import { CogJobJson } from '@basemaps/shared';

const PublicUrlBase = Env.isProduction() ? 'https://basemaps.linz.govt.nz/' : 'https://dev.basemaps.linz.govt.nz/';

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/cog/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { CogTiff, TiffTag, TiffTagGeo } from '@cogeotiff/core';
import pLimit, { LimitFunction } from 'p-limit';
import { basename } from 'path';
import { Cutline } from './cutline.js'; //
import { ProjectionLoader } from '@basemaps/geo/build/proj/projection.loader.js';
import { CogBuilderMetadata, SourceMetadata } from '@basemaps/shared/build/cog/types.js';
import { ProjectionLoader } from '@basemaps/geo';
import { CogBuilderMetadata, SourceMetadata } from '@basemaps/shared';

export const InvalidProjectionCode = 32767;

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/cog/cutline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
union,
} from '@linzjs/geojson';
import { FeatureCollection } from 'geojson';
import { AlignedLevel, CoveringFraction } from '@basemaps/shared/build/cog/constants.js';
import { CogJob, FeatureCollectionWithCrs, SourceMetadata } from '@basemaps/shared/build/cog/types.js';
import { AlignedLevel, CoveringFraction } from '@basemaps/shared';
import { CogJob, FeatureCollectionWithCrs, SourceMetadata } from '@basemaps/shared';

/** Padding to always apply to image boundies */
const PixelPadding = 200;
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export { toQueryString } from './url.js';
export { CompositeError } from './composite.error.js';
export { ConfigProviderDynamo } from './dynamo/dynamo.config.js';
export { ConfigDynamoBase } from './dynamo/dynamo.config.base.js';
export { CogJobJson, CogBuilderMetadata, CogJob, FeatureCollectionWithCrs, SourceMetadata } from './cog/types.js';
export { AlignedLevel, CoveringFraction } from './cog/constants.js';

export * from './file/index.js';
export * from './util.js';

0 comments on commit 6264411

Please sign in to comment.