mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: use js
extension (#8804)
This commit is contained in:
parent
02e1eea7eb
commit
b80beecadf
@ -1,6 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: ['../.eslintrc.js'],
|
|
||||||
rules: {
|
|
||||||
'import/extensions': 0,
|
|
||||||
},
|
|
||||||
};
|
|
@ -17,8 +17,8 @@
|
|||||||
import {readFile, writeFile} from 'fs/promises';
|
import {readFile, writeFile} from 'fs/promises';
|
||||||
import rimraf from 'rimraf';
|
import rimraf from 'rimraf';
|
||||||
import semver from 'semver';
|
import semver from 'semver';
|
||||||
import {generateDocs} from './internal/custom_markdown_action';
|
import {generateDocs} from './internal/custom_markdown_action.js';
|
||||||
import {job} from './internal/job';
|
import {job} from './internal/job.js';
|
||||||
|
|
||||||
function getOffsetAndLimit(
|
function getOffsetAndLimit(
|
||||||
sectionName: string,
|
sectionName: string,
|
||||||
|
@ -3,7 +3,7 @@ import esbuild from 'esbuild';
|
|||||||
import {mkdir, mkdtemp, readFile, writeFile} from 'fs/promises';
|
import {mkdir, mkdtemp, readFile, writeFile} from 'fs/promises';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import rimraf from 'rimraf';
|
import rimraf from 'rimraf';
|
||||||
import {job} from './internal/job';
|
import {job} from './internal/job.js';
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
await job('', async ({outputs}) => {
|
await job('', async ({outputs}) => {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import {ApiModel} from '@microsoft/api-extractor-model';
|
import {ApiModel} from '@microsoft/api-extractor-model';
|
||||||
import {MarkdownDocumenter} from './custom_markdown_documenter';
|
import {MarkdownDocumenter} from './custom_markdown_documenter.js';
|
||||||
|
|
||||||
export const generateDocs = (jsonPath: string, outputDir: string): void => {
|
export const generateDocs = (jsonPath: string, outputDir: string): void => {
|
||||||
const apiModel = new ApiModel();
|
const apiModel = new ApiModel();
|
||||||
|
Loading…
Reference in New Issue
Block a user