Skip to content

Commit 72b9486

Browse files
committed
Make sure the scripts in src/ matches their npm commands
1 parent 1fd97d1 commit 72b9486

12 files changed

+11
-11
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"node": ">=15"
66
},
77
"scripts": {
8-
"build": "tsc -p ./tsconfig.json && node ./lib/index.js",
9-
"fetch-idl": "tsc -p ./tsconfig.json && node ./lib/idlfetcher.js",
10-
"fetch-mdn": "npm run build && node ./lib/mdnfetcher.js",
8+
"build": "tsc -p ./tsconfig.json && node ./lib/build.js",
9+
"fetch-idl": "tsc -p ./tsconfig.json && node ./lib/fetch-idl.js",
10+
"fetch-mdn": "npm run build && node ./lib/fetch-mdn.js",
1111
"fetch": "echo This could take a few minutes... && npm run fetch-idl && npm run fetch-mdn",
1212
"baseline-accept": "cpx \"generated\\*\" baselines\\",
1313
"lint": "eslint --max-warnings 0 src",
1414
"test": "npm run lint && npm run build && node ./lib/test.js",
1515
"danger": "danger",
16-
"migrate": "node ./lib/migrate-to-tsc.js"
16+
"migrate": "node ./lib/migrate.js"
1717
},
1818
"dependencies": {
1919
"@mdn/browser-compat-data": "2.0.7",

src/index.ts renamed to src/build.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./types";
1+
import * as Browser from "./build/types";
22
import * as fs from "fs";
33
import * as path from "path";
44
import {
@@ -7,11 +7,11 @@ import {
77
markAsDeprecated,
88
mapToArray,
99
arrayToMap,
10-
} from "./helpers";
11-
import { Flavor, emitWebIdl } from "./emitter";
12-
import { convert } from "./widlprocess";
13-
import { getExposedTypes } from "./expose";
14-
import { getRemovalDataFromBcd } from "./bcd";
10+
} from "./build/helpers";
11+
import { Flavor, emitWebIdl } from "./build/emitter";
12+
import { convert } from "./build/widlprocess";
13+
import { getExposedTypes } from "./build/expose";
14+
import { getRemovalDataFromBcd } from "./build/bcd";
1515

1616
function mergeNamesakes(filtered: Browser.WebIdl) {
1717
const targets = [
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/migrate-to-tsc.ts renamed to src/migrate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Mainly a quick script to migrate the generated files into the
22
// lib folder of a TypeScript clone.
33
//
4-
// node ./lib/migrate-to-tsc.js [optional/file/path/to/tsc]
4+
// node ./lib/migrate.js [optional/file/path/to/tsc]
55

66
import { existsSync, readdirSync, readFileSync, writeFileSync } from "fs";
77
import { join } from "path";

0 commit comments

Comments
 (0)