Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit b3ac70e

Browse files
committed
chore: 🏗 Replace .js extensions to .ts in source files
1 parent c317b6e commit b3ac70e

File tree

48 files changed

+103
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+103
-103
lines changed

packages/config/source/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/* MODULES */
2-
export * from "./merge/merge.js";
3-
export * from "./read/read.js";
2+
export * from "./merge/merge.ts";
3+
export * from "./read/read.ts";

packages/config/source/merge/merge.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { FALSY_PRIMITIVES } from "@terminal-nerds/snippets-test/sample";
22
import { returns } from "@terminal-nerds/snippets-test/unit";
33
import { describe, expect, it } from "vitest";
44

5-
import { createMergedConfig } from "./merge.js";
5+
import { createMergedConfig } from "./merge.ts";
66

77
const SAMPLE_CONFIG_1 = {
88
array: ["one"],

packages/config/source/read/read.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
getCurrentWorkingDirectory,
77
getNearestConfigPath,
88
getNearestPackageRootPath,
9-
} from "./read.js";
9+
} from "./read.ts";
1010

1111
describe(`getNearestPackageRootPath(cwd?)`, () => {
1212
const expected = getCurrentWorkingDirectory();

packages/error/source/built-in/built-in.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
isSyntaxError,
1010
isTypeError,
1111
isURIError,
12-
} from "./built-in.js";
12+
} from "./built-in.ts";
1313

1414
describe("isError(error)", () => {
1515
it(returns(true).on(`Error`), () => {

packages/error/source/custom/custom.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { returns } from "@terminal-nerds/snippets-test/unit";
22
import { describe, expect, it } from "vitest";
33

4-
import { isRuntimeError, isValidationError, RuntimeError, ValidationError } from "./custom.js";
4+
import { isRuntimeError, isValidationError, RuntimeError, ValidationError } from "./custom.ts";
55

66
describe("isRuntimeError(error)", () => {
77
it(returns(false).on(`Error`), () => {

packages/error/source/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/* MODULES */
2-
export * from "./built-in/built-in.js";
3-
export * from "./custom/custom.js";
2+
export * from "./built-in/built-in.ts";
3+
export * from "./custom/custom.ts";

packages/extension/source/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* MODULES */
2-
export * from "./schema/schema.js";
2+
export * from "./schema/schema.ts";

packages/extension/source/schema/schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
STYLESHEETS_EXTENSIONS,
1717
TYPESCRIPT_EXTENSIONS,
1818
YAML_EXTENSIONS,
19-
} from "./schema.js";
19+
} from "./schema.ts";
2020

2121
describe("isHTMLExtension(extension)", () => {
2222
it(returns(false).on(`non-valid HTML extensions`).samples(YAML_EXTENSIONS), () => {
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export * from "./groups/html.js";
2-
export * from "./groups/javascript.js";
3-
export * from "./groups/json.js";
4-
export * from "./groups/markdown.js";
5-
export * from "./groups/stylesheet.js";
6-
export * from "./groups/typescript.js";
7-
export * from "./groups/yaml.js";
1+
export * from "./groups/html.ts";
2+
export * from "./groups/javascript.ts";
3+
export * from "./groups/json.ts";
4+
export * from "./groups/markdown.ts";
5+
export * from "./groups/stylesheet.ts";
6+
export * from "./groups/typescript.ts";
7+
export * from "./groups/yaml.ts";

packages/function/source/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* MODULES */
2-
export * from "./schema/schema.js";
2+
export * from "./schema/schema.ts";

0 commit comments

Comments
 (0)