Lint deploy/ scripts
This commit is contained in:
Родитель
7162786a50
Коммит
5e74d70135
|
@ -24,11 +24,11 @@ jobs:
|
|||
- run: npm test
|
||||
|
||||
- name: Create packages for .d.ts files
|
||||
run: node deploy/createTypesPackages.mjs
|
||||
run: node deploy/createTypesPackages.js
|
||||
|
||||
# Deploy anything which differs from the npm version of a tsconfig
|
||||
- name: "Deploy built packages to NPM"
|
||||
run: node deploy/deployChangedPackages.mjs
|
||||
run: node deploy/deployChangedPackages.js
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// @ts-check
|
||||
|
||||
// node deploy/createTypesPackages.mjs
|
||||
// node deploy/createTypesPackages.js
|
||||
|
||||
// prettier-ignore
|
||||
export const packages = [
|
|
@ -1,8 +1,8 @@
|
|||
// @ts-check
|
||||
|
||||
// node deploy/deployChangedPackages.mjs
|
||||
// node deploy/deployChangedPackages.js
|
||||
|
||||
// Builds on the results of createTypesPackages.mjs and deploys the
|
||||
// Builds on the results of createTypesPackages.js and deploys the
|
||||
// ones which have changed.
|
||||
|
||||
import * as fs from "fs";
|
||||
|
@ -11,7 +11,7 @@ import { spawnSync, execSync } from "child_process";
|
|||
import { Octokit } from "@octokit/core";
|
||||
import printDiff from "print-diff";
|
||||
import { generateChangelogFrom } from "../lib/changelog.js";
|
||||
import { packages } from "./createTypesPackages.mjs";
|
||||
import { packages } from "./createTypesPackages.js";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
verify();
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
"module": "esnext", // es2022
|
||||
"moduleResolution": "node"
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
// npm run ts-changelog @types/web 0.0.1 0.0.3
|
||||
|
||||
import { generateChangelogFrom } from "../lib/changelog.js";
|
||||
import { packages } from "./createTypesPackages.mjs";
|
||||
import { packages } from "./createTypesPackages.js";
|
||||
import { execSync } from "child_process";
|
||||
import { basename } from "path";
|
||||
|
|
@ -17,11 +17,11 @@
|
|||
"fetch-mdn": "npm run build && node ./lib/fetch-mdn.js",
|
||||
"fetch": "echo This could take a few minutes... && npm run fetch-comment && npm run fetch-mdn",
|
||||
"baseline-accept": "cpx \"generated\\*\" baselines\\",
|
||||
"lint": "eslint --max-warnings 0 src",
|
||||
"lint": "eslint --max-warnings 0 src deploy/*.js && tsc -p deploy/jsconfig.json",
|
||||
"test": "npm run lint && npm run build && node ./lib/test.js && node ./unittests/index.js",
|
||||
"changelog": "tsc && node ./lib/changelog.js",
|
||||
"ts-changelog": "node ./deploy/versionChangelog.mjs",
|
||||
"migrate": "node ./deploy/migrate.mjs",
|
||||
"ts-changelog": "node ./deploy/versionChangelog.js",
|
||||
"migrate": "node ./deploy/migrate.js",
|
||||
"version": "npm i && tsc && node ./lib/version.js"
|
||||
},
|
||||
"author": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче