Skip to content

Commit 63158a5

Browse files
deno imports must use ts extension
1 parent 3b4c9bc commit 63158a5

5 files changed

Lines changed: 23 additions & 18 deletions

File tree

packages/quarto-types/src/execution-engine.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* Execution engine interfaces for Quarto
33
*/
44

5-
import { MappedString } from "./text-types";
6-
import { Format, Metadata } from "./metadata-types";
7-
import { EngineProjectContext } from "./project-context";
8-
import type { Command } from "./cli-types";
9-
import type { QuartoAPI } from "./quarto-api";
5+
import { MappedString } from "./text-types.ts";
6+
import { Format, Metadata } from "./metadata-types.ts";
7+
import { EngineProjectContext } from "./project-context.ts";
8+
import type { Command } from "./cli-types.ts";
9+
import type { QuartoAPI } from "./quarto-api.ts";
1010

1111
/**
1212
* Execution target (filename and context)

packages/quarto-types/src/jupyter-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
// deno-lint-ignore-file camelcase
88

9-
import { ExecuteOptions } from './execution-engine';
10-
import { Metadata } from './metadata-types';
9+
import { ExecuteOptions } from './execution-engine.ts';
10+
import { Metadata } from './metadata-types.ts';
1111

1212
/**
1313
* Jupyter notebook kernelspec

packages/quarto-types/src/project-context.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
* Project context interfaces for Quarto engines
33
*/
44

5-
import type { MappedString } from "./text-types";
6-
import type { ExecutionEngineInstance, ExecutionTarget } from "./execution-engine";
7-
import type { ExternalEngine } from "./external-engine";
8-
import type { Metadata } from "./metadata-types";
5+
import type { MappedString } from "./text-types.ts";
6+
import type {
7+
ExecutionEngineInstance,
8+
ExecutionTarget,
9+
} from "./execution-engine.ts";
10+
import type { ExternalEngine } from "./external-engine.ts";
11+
import type { Metadata } from "./metadata-types.ts";
912

1013
/**
1114
* Information about a file being processed

packages/quarto-types/src/quarto-api.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
* Copyright (C) 2023 Posit Software, PBC
55
*/
66

7-
import { MappedString } from './text-types';
8-
import { Metadata } from './metadata-types';
9-
import { PartitionedMarkdown } from './execution-engine';
7+
import { MappedString } from './text-types.ts';
8+
import { Metadata } from './metadata-types.ts';
9+
import { PartitionedMarkdown } from './execution-engine.ts';
1010
import type {
1111
JupyterNotebook,
1212
JupyterToMarkdownOptions,
1313
JupyterToMarkdownResult,
1414
JupyterNotebookAssetPaths,
1515
JupyterWidgetDependencies,
1616
FormatPandoc,
17-
} from './jupyter-types';
18-
import { PandocIncludes } from './execution-engine';
19-
import { Format } from './metadata-types';
17+
} from './jupyter-types.ts';
18+
import { PandocIncludes } from './execution-engine.ts';
19+
import { Format } from './metadata-types.ts';
2020

2121
/**
2222
* Global Quarto API interface

packages/quarto-types/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"esModuleInterop": true,
99
"skipLibCheck": true,
1010
"forceConsistentCasingInFileNames": true,
11-
"moduleResolution": "node"
11+
"moduleResolution": "node",
12+
"allowImportingTsExtensions": true,
13+
"emitDeclarationOnly": true
1214
},
1315
"include": ["src/**/*.ts"],
1416
"exclude": ["node_modules", "dist"]

0 commit comments

Comments
 (0)