Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Avoid doctype reexports canonicalization issue #1354

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/meta/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
export * as worker from '@temporalio/worker';
export * as client from '@temporalio/client';
// ORDER IS IMPORTANT! When a type is re-exported, TypeDoc will keep the first
// one it encountered as canonical, and mark others as references to that one.
export * as protobufs from '@temporalio/common/lib/protobufs';
export * as proto from '@temporalio/proto';
export * as common from '@temporalio/common';
export * as protobufs from '@temporalio/common/lib/protobufs';
export * as workflow from '@temporalio/workflow';
export * as activity from '@temporalio/activity';
export * as worker from '@temporalio/worker';
export * as client from '@temporalio/client';
export * as testing from '@temporalio/testing';
export * as opentelemetry from '@temporalio/interceptors-opentelemetry';
8 changes: 5 additions & 3 deletions scripts/prepublish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ const packages = await fs.readdir(packagesPath);
for (const dir of packages) {
const packageJsonPath = path.join(packagesPath, dir, 'package.json');
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf8'));
for (const dep of Object.keys(packageJson.dependencies)) {
if (dep.startsWith('@temporalio/')) {
packageJson.dependencies[dep] = `${version}`;
for (const depType of ['dependencies', 'devDependencies', 'peerDependencies']) {
for (const dep of Object.keys(packageJson[depType] ?? {})) {
if (dep.startsWith('@temporalio/')) {
packageJson[depType][dep] = `${version}`;
}
}
}
const replacedContent = JSON.stringify(packageJson, null, 2);
Expand Down
Loading