From 183e72178c96e1cccfefa939dcf7cd2fc4251448 Mon Sep 17 00:00:00 2001 From: Hew Date: Tue, 23 Jan 2024 14:35:38 -0500 Subject: [PATCH] Add file extensions to TS imports --- src/ts/jssm.ts | 18 +++++++++--------- src/ts/jssm_arrow.ts | 4 ++-- src/ts/jssm_compiler.ts | 10 +++++----- src/ts/jssm_error.ts | 2 +- src/ts/jssm_theme.ts | 14 +++++++------- src/ts/jssm_util.ts | 4 ++-- src/ts/themes/jssm_base_stylesheet.ts | 2 +- src/ts/themes/jssm_theme_bold.ts | 2 +- src/ts/themes/jssm_theme_default.ts | 2 +- src/ts/themes/jssm_theme_modern.ts | 2 +- src/ts/themes/jssm_theme_ocean.ts | 2 +- src/ts/themes/jssm_theme_plain.ts | 2 +- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/ts/jssm.ts b/src/ts/jssm.ts index ee89feec..327f113c 100644 --- a/src/ts/jssm.ts +++ b/src/ts/jssm.ts @@ -29,15 +29,15 @@ import { JssmBaseTheme, JssmRng -} from './jssm_types'; +} from './jssm_types.js'; -import { arrow_direction, arrow_left_kind, arrow_right_kind } from './jssm_arrow'; -import { compile, make, makeTransition, wrap_parse } from './jssm_compiler'; -import { theme_mapping, base_theme } from './jssm_theme'; +import { arrow_direction, arrow_left_kind, arrow_right_kind } from './jssm_arrow.js'; +import { compile, make, makeTransition, wrap_parse } from './jssm_compiler.js'; +import { theme_mapping, base_theme } from './jssm_theme.js'; @@ -51,22 +51,22 @@ import { array_box_if_string, name_bind_prop_and_state, hook_name, named_hook_name, gen_splitmix32 -} from './jssm_util'; +} from './jssm_util.js'; -import * as constants from './jssm_constants'; +import * as constants from './jssm_constants.js'; const { shapes, gviz_shapes, named_colors } = constants; -import { parse } from './fsl_parser'; -import { version, build_time } from './version'; // replaced from package.js in build -import { JssmError } from './jssm_error'; +import { parse } from './fsl_parser.js'; +import { version, build_time } from './version.js'; // replaced from package.js in build +import { JssmError } from './jssm_error.js'; diff --git a/src/ts/jssm_arrow.ts b/src/ts/jssm_arrow.ts index 400683e0..c4c2dac1 100644 --- a/src/ts/jssm_arrow.ts +++ b/src/ts/jssm_arrow.ts @@ -1,6 +1,6 @@ -import { JssmArrow, JssmArrowDirection, JssmArrowKind } from './jssm_types'; -import { JssmError } from './jssm_error'; +import { JssmArrow, JssmArrowDirection, JssmArrowKind } from './jssm_types.js'; +import { JssmError } from './jssm_error.js'; diff --git a/src/ts/jssm_compiler.ts b/src/ts/jssm_compiler.ts index 9b0cd19e..399fe28b 100644 --- a/src/ts/jssm_compiler.ts +++ b/src/ts/jssm_compiler.ts @@ -1,17 +1,17 @@ -import { JssmError } from './jssm_error'; -import { parse } from './fsl_parser'; +import { JssmError } from './jssm_error.js'; +import { parse } from './fsl_parser.js'; import { arrow_direction, arrow_left_kind, arrow_right_kind -} from './jssm_arrow'; +} from './jssm_arrow.js'; import { find_repeated, name_bind_prop_and_state -} from './jssm_util'; +} from './jssm_util.js'; import { JssmTransition, @@ -27,7 +27,7 @@ import { JssmLayout, JssmPropertyDefinition, JssmAllowsOverride -} from './jssm_types'; +} from './jssm_types.js'; import { reduce as reduce_to_639 } from 'reduce-to-639-1'; diff --git a/src/ts/jssm_error.ts b/src/ts/jssm_error.ts index 81c1a017..8d6f6784 100644 --- a/src/ts/jssm_error.ts +++ b/src/ts/jssm_error.ts @@ -1,5 +1,5 @@ -import { JssmErrorExtendedInfo } from './jssm_types'; +import { JssmErrorExtendedInfo } from './jssm_types.js'; diff --git a/src/ts/jssm_theme.ts b/src/ts/jssm_theme.ts index 95acc4af..a4e74d0e 100644 --- a/src/ts/jssm_theme.ts +++ b/src/ts/jssm_theme.ts @@ -1,17 +1,17 @@ -import { FslTheme, JssmBaseTheme } from './jssm_types'; +import { FslTheme, JssmBaseTheme } from './jssm_types.js'; -import { base_theme } from './themes/jssm_base_stylesheet'; +import { base_theme } from './themes/jssm_base_stylesheet.js'; -import { default_theme } from './themes/jssm_theme_default'; -import { modern_theme } from './themes/jssm_theme_modern'; -import { ocean_theme } from './themes/jssm_theme_ocean'; -import { plain_theme } from './themes/jssm_theme_plain'; -import { bold_theme } from './themes/jssm_theme_bold'; +import { default_theme } from './themes/jssm_theme_default.js'; +import { modern_theme } from './themes/jssm_theme_modern.js'; +import { ocean_theme } from './themes/jssm_theme_ocean.js'; +import { plain_theme } from './themes/jssm_theme_plain.js'; +import { bold_theme } from './themes/jssm_theme_bold.js'; diff --git a/src/ts/jssm_util.ts b/src/ts/jssm_util.ts index 92da4554..fd3b46cd 100644 --- a/src/ts/jssm_util.ts +++ b/src/ts/jssm_util.ts @@ -1,7 +1,7 @@ -import { JssmRng } from './jssm_types'; +import { JssmRng } from './jssm_types.js'; -import { JssmError } from './jssm_error'; +import { JssmError } from './jssm_error.js'; diff --git a/src/ts/themes/jssm_base_stylesheet.ts b/src/ts/themes/jssm_base_stylesheet.ts index 92637b0d..ee7d1517 100644 --- a/src/ts/themes/jssm_base_stylesheet.ts +++ b/src/ts/themes/jssm_base_stylesheet.ts @@ -2,7 +2,7 @@ import { JssmStateConfig, JssmBaseTheme -} from '../jssm_types'; +} from '../jssm_types.js'; diff --git a/src/ts/themes/jssm_theme_bold.ts b/src/ts/themes/jssm_theme_bold.ts index b4d3c43c..5b6c096c 100644 --- a/src/ts/themes/jssm_theme_bold.ts +++ b/src/ts/themes/jssm_theme_bold.ts @@ -2,7 +2,7 @@ import { JssmStateConfig, JssmBaseTheme -} from '../jssm_types'; +} from '../jssm_types.js'; diff --git a/src/ts/themes/jssm_theme_default.ts b/src/ts/themes/jssm_theme_default.ts index 9e275830..c9132b21 100644 --- a/src/ts/themes/jssm_theme_default.ts +++ b/src/ts/themes/jssm_theme_default.ts @@ -2,7 +2,7 @@ import { JssmStateConfig, JssmBaseTheme -} from '../jssm_types'; +} from '../jssm_types.js'; diff --git a/src/ts/themes/jssm_theme_modern.ts b/src/ts/themes/jssm_theme_modern.ts index 2dbd254e..6bcf3bdd 100644 --- a/src/ts/themes/jssm_theme_modern.ts +++ b/src/ts/themes/jssm_theme_modern.ts @@ -2,7 +2,7 @@ import { JssmStateConfig, JssmBaseTheme -} from '../jssm_types'; +} from '../jssm_types.js'; diff --git a/src/ts/themes/jssm_theme_ocean.ts b/src/ts/themes/jssm_theme_ocean.ts index 9e71a437..6808b45d 100644 --- a/src/ts/themes/jssm_theme_ocean.ts +++ b/src/ts/themes/jssm_theme_ocean.ts @@ -2,7 +2,7 @@ import { JssmStateConfig, JssmBaseTheme -} from '../jssm_types'; +} from '../jssm_types.js'; diff --git a/src/ts/themes/jssm_theme_plain.ts b/src/ts/themes/jssm_theme_plain.ts index b11b96b8..867d396e 100644 --- a/src/ts/themes/jssm_theme_plain.ts +++ b/src/ts/themes/jssm_theme_plain.ts @@ -2,7 +2,7 @@ import { JssmStateConfig, JssmBaseTheme -} from '../jssm_types'; +} from '../jssm_types.js';