CI(typescript): add typescript stuff
Summary: Add them as `package.json` deps. Also remove `--fund=false` in GitHub Actions workflows where it's obsoleted by `.npmrc` file. Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: `npm ci`. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D429
This commit is contained in:
parent
ab283848b8
commit
4e98e27115
4 changed files with 50 additions and 13 deletions
4
.github/workflows/npm-pub.yml
vendored
4
.github/workflows/npm-pub.yml
vendored
|
@ -23,6 +23,7 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
|
cache: npm
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: 'Install dependencies'
|
- name: 'Install dependencies'
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -47,9 +48,10 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
|
cache: npm
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: 'Install dependencies'
|
- name: 'Install dependencies'
|
||||||
run: npm ci --fund=false
|
run: npm ci
|
||||||
- name: 'Publish to npm'
|
- name: 'Publish to npm'
|
||||||
run: npm publish --provenance --access public
|
run: npm publish --provenance --access public
|
||||||
working-directory: './npm/prettier-config'
|
working-directory: './npm/prettier-config'
|
||||||
|
|
52
package-lock.json
generated
52
package-lock.json
generated
|
@ -12,11 +12,13 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@revi/eslint-config": "./npm/eslint-config",
|
"@revi/eslint-config": "./npm/eslint-config",
|
||||||
"@revi/prettier-config": "./npm/prettier-config",
|
"@revi/prettier-config": "./npm/prettier-config",
|
||||||
|
"@types/node": "20.14.8",
|
||||||
"csslint": "1.0.5",
|
"csslint": "1.0.5",
|
||||||
"eslint": "9.5.0",
|
"eslint": "9.5.0",
|
||||||
"eslint-config-wikimedia": "0.28.2",
|
"eslint-config-wikimedia": "0.28.2",
|
||||||
"jshint": "2.13.6",
|
"jshint": "2.13.6",
|
||||||
"prettier": "3.3.2"
|
"prettier": "3.3.2",
|
||||||
|
"typescript": "5.5.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame": {
|
"node_modules/@babel/code-frame": {
|
||||||
|
@ -455,6 +457,16 @@
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/node": {
|
||||||
|
"version": "20.14.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.8.tgz",
|
||||||
|
"integrity": "sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"undici-types": "~5.26.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@types/normalize-package-data": {
|
"node_modules/@types/normalize-package-data": {
|
||||||
"version": "2.4.4",
|
"version": "2.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
|
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
|
||||||
|
@ -3557,12 +3569,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.4.5",
|
"version": "5.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz",
|
||||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
"integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"peer": true,
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
|
@ -3571,6 +3582,13 @@
|
||||||
"node": ">=14.17"
|
"node": ">=14.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/undici-types": {
|
||||||
|
"version": "5.26.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
||||||
|
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/upath": {
|
"node_modules/upath": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/upath/-/upath-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/upath/-/upath-2.0.1.tgz",
|
||||||
|
@ -4164,6 +4182,15 @@
|
||||||
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@types/node": {
|
||||||
|
"version": "20.14.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.8.tgz",
|
||||||
|
"integrity": "sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"undici-types": "~5.26.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
"version": "2.4.4",
|
"version": "2.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
|
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
|
||||||
|
@ -6215,11 +6242,16 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "5.4.5",
|
"version": "5.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz",
|
||||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
"integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"peer": true
|
},
|
||||||
|
"undici-types": {
|
||||||
|
"version": "5.26.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
||||||
|
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"upath": {
|
"upath": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
|
|
|
@ -5,11 +5,13 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@revi/eslint-config": "./npm/eslint-config",
|
"@revi/eslint-config": "./npm/eslint-config",
|
||||||
"@revi/prettier-config": "./npm/prettier-config",
|
"@revi/prettier-config": "./npm/prettier-config",
|
||||||
|
"@types/node": "20.14.8",
|
||||||
"csslint": "1.0.5",
|
"csslint": "1.0.5",
|
||||||
"eslint": "9.5.0",
|
"eslint": "9.5.0",
|
||||||
"eslint-config-wikimedia": "0.28.2",
|
"eslint-config-wikimedia": "0.28.2",
|
||||||
"jshint": "2.13.6",
|
"jshint": "2.13.6",
|
||||||
"prettier": "3.3.2"
|
"prettier": "3.3.2",
|
||||||
|
"typescript": "5.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"eslint": "eslint",
|
"eslint": "eslint",
|
||||||
|
|
|
@ -38,5 +38,6 @@
|
||||||
/* Completeness */
|
/* Completeness */
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true
|
||||||
/* Skip type checking all .d.ts files. */
|
/* Skip type checking all .d.ts files. */
|
||||||
}
|
},
|
||||||
|
"exclude": ["node_modules/", "wikiassets/*.bot.config.mjs"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue