Skip to content

Commit 5281986

Browse files
committed
Simplify root tsconfig
1 parent 00520db commit 5281986

21 files changed

Lines changed: 81 additions & 52 deletions

assertions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from "node:assert/strict";
2-
import { assertValidFeatureReference } from "./assertions";
2+
import { assertValidFeatureReference } from "./assertions.ts";
33

44
describe("assertValidReference()", function () {
55
it("throws if target ID is a move", function () {

assertions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { isOrdinaryFeatureData } from "./type-guards";
2-
import { FeatureData } from "./types";
3-
import { WebFeaturesData } from "./types.quicktype";
1+
import { isOrdinaryFeatureData } from "./type-guards.ts";
2+
import type { FeatureData } from "./types.ts";
3+
import type { WebFeaturesData } from "./types.quicktype.ts";
44

55
/**
66
* Assert that a reference from one feature to another is an ordinary feature

index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import path from 'path';
44
import { Temporal } from '@js-temporal/polyfill';
55
import { fdir } from 'fdir';
66
import YAML from 'yaml';
7-
import { convertMarkdown } from "./text";
8-
import { GroupData, SnapshotData, WebFeaturesData } from './types';
7+
import { convertMarkdown } from "./text.ts";
8+
import type { GroupData, SnapshotData, WebFeaturesData } from './types.ts';
99

1010
import { BASELINE_LOW_TO_HIGH_DURATION, coreBrowserSet, getStatus, parseRangedDateString } from 'compute-baseline';
1111
import { Compat } from 'compute-baseline/browser-compat-data';
12-
import { assertRequiredRemovalDateSet, assertValidFeatureReference } from './assertions';
13-
import { isMoved, isOrdinaryFeatureData, isSplit } from './type-guards';
12+
import { assertRequiredRemovalDateSet, assertValidFeatureReference } from './assertions.ts';
13+
import { isMoved, isOrdinaryFeatureData, isSplit } from './type-guards.ts';
1414

1515
// The longest name allowed, to allow for compact display.
1616
const nameMaxLength = 80;

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"@js-temporal/polyfill": "^0.5.1",
4343
"@mdn/browser-compat-data": "7.3.17",
4444
"@octokit/rest": "^22.0.1",
45+
"@tsconfig/node-ts": "^23.6.4",
46+
"@tsconfig/node22": "^22.0.5",
4547
"@types/caniuse-lite": "^1.0.4",
4648
"@types/node": "^22.19.19",
4749
"@types/yargs": "^17.0.35",

scripts/audit-consumers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Octokit } from "@octokit/rest";
22
import * as cheerio from "cheerio";
33

4-
import { features as webFeatures } from "../index.js";
4+
import { features as webFeatures } from "../index.ts";
55

66
interface Report {
77
heading: string;

scripts/build.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { DefinedError } from "ajv";
1+
import type { DefinedError } from "ajv";
22
import stringify from "fast-json-stable-stringify";
3+
import { fdir } from "fdir";
34
import { execSync } from "node:child_process";
45
import fs from "node:fs";
56
import path from "node:path";
67
import winston from "winston";
7-
import yargs from "yargs";
8-
import * as data from "../index.js";
9-
import { validate, validateProposed } from "./validate.js";
10-
import { fdir } from "fdir";
118
import YAML from "yaml";
9+
import yargs from "yargs";
10+
import * as data from "../index.ts";
11+
import { validate, validateProposed } from "./validate.ts";
1212

1313
const logger = winston.createLogger({
1414
format: winston.format.combine(

scripts/caniuse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import lite from "caniuse-lite";
22
import { fileURLToPath } from "node:url";
33
import winston from "winston";
4-
import { features } from "../index.js";
5-
import { isOrdinaryFeatureData } from "../type-guards.js";
4+
import { features } from "../index.ts";
5+
import { isOrdinaryFeatureData } from "../type-guards.ts";
66

77
const logger = winston.createLogger({
88
format: winston.format.printf(({ message }) => `${message}`),

scripts/dist.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ import { isDeepStrictEqual } from "node:util";
1414
import winston from "winston";
1515
import YAML, { Document, Scalar, YAMLSeq } from "yaml";
1616
import yargs from "yargs";
17-
import { checkForStaleCompat, tagsToFeatures } from "../compat-helpers";
18-
import type { FeatureData, FeatureMovedData, FeatureSplitData } from "../types";
17+
import { checkForStaleCompat, tagsToFeatures } from "../compat-helpers.ts";
18+
import type {
19+
FeatureData,
20+
FeatureMovedData,
21+
FeatureSplitData,
22+
} from "../types.ts";
1923

2024
const argv = yargs(process.argv.slice(2))
2125
.scriptName("dist")

scripts/find-ranged-headline-statuses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { features } from "../index";
2-
import { isOrdinaryFeatureData } from "../type-guards";
1+
import { features } from "../index.ts";
2+
import { isOrdinaryFeatureData } from "../type-guards.ts";
33

44
for (const [key, data] of Object.entries(features)) {
55
if (isOrdinaryFeatureData(data)) {

0 commit comments

Comments
 (0)