automation/check-doc: Convert to typescript

This commit is contained in:
Thodoris Greasidis 2022-10-18 09:45:12 +03:00
parent a366f0b7eb
commit ded268ff3c
2 changed files with 8 additions and 6 deletions

View File

@ -15,11 +15,12 @@
* limitations under the License.
*/
const stripIndent = require('common-tags/lib/stripIndent');
const _ = require('lodash');
const { promises: fs } = require('fs');
const path = require('path');
const simplegit = require('simple-git/promise');
// tslint:disable-next-line:import-blacklist
import { stripIndent } from 'common-tags';
import * as _ from 'lodash';
import { promises as fs } from 'fs';
import * as path from 'path';
import simplegit from 'simple-git/promise';
const ROOT = path.normalize(path.join(__dirname, '..'));
@ -81,4 +82,5 @@ async function run() {
}
}
// tslint:disable-next-line:no-floating-promises
run();

View File

@ -95,7 +95,7 @@
},
"husky": {
"hooks": {
"pre-commit": "node automation/check-npm-version.js && node automation/check-doc.js"
"pre-commit": "node automation/check-npm-version.js && ts-node automation/check-doc.ts"
}
},
"oclif": {