Skip to content

Commit aad7832

Browse files
author
Orta Therox
authored
Merge pull request #993 from saschanaz/microsoft-build-dir
Make sure the scripts in src/ matches their npm commands
2 parents 3a6fa3b + 0bbdd29 commit aad7832

File tree

12 files changed

+11
-11
lines changed

12 files changed

+11
-11
lines changed

package.json

Lines changed: 4 additions & 4 deletions
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

Lines changed: 6 additions & 6 deletions
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.

0 commit comments

Comments
 (0)