Skip to content

Commit 287fa63

Browse files
committed
[TASK] update reference for js types
1 parent 4fcf1c1 commit 287fa63

19 files changed

Lines changed: 25 additions & 113 deletions

File tree

jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"checkJs": true,
77
"forceConsistentCasingInFileNames": true,
88
"useUnknownInCatchVariables": false,
9-
"moduleResolution": "node"
9+
"moduleResolution": "bundler"
1010
},
1111
"include": ["lib/**/*", "bin/**/*"],
1212
}

lib/args/args.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const commands = [
1111
'fetch',
1212
'fetchModules',
1313
'upload',
14+
'cleanUpload',
1415
'validate',
1516
'lighthouse',
1617
'fields',

lib/args/debug-verbose.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
import * as TYPES from '../types/types.js' // eslint-disable-line
1+
/// <reference path="../types/types.js" />
22
import chalk from 'chalk'
33
import minimist from 'minimist' // eslint-disable-line
44

5-
/**
6-
* @ignore
7-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
8-
*/
9-
105
/**
116
* #### show debug info
127
* @memberof OPTIONS

lib/args/debug.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
import * as TYPES from '../types/types.js' // eslint-disable-line
1+
/// <reference path="../types/types.js" />
22
import chalk from 'chalk'
33
import minimist from 'minimist' // eslint-disable-line
44

5-
/**
6-
* @ignore
7-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
8-
*/
9-
105
/**
116
* #### show debug info
127
* @memberof OPTIONS

lib/args/help.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import * as TYPES from '../types/types.js' // eslint-disable-line
1+
/// <reference path="../types/types.js" />
22

3-
/**
4-
* @ignore
5-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
6-
*/
73
/**
84
* @summary Show help information
95
* @param {LOCALDATA} data - cli data

lib/cmd/info.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import * as TYPES from '../types/types.js' // eslint-disable-line
1+
/// <reference path="../types/types.js" />
22
import chalk from 'chalk'
33

4-
/**
5-
* @ignore
6-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
7-
*/
8-
94
/**
105
* #### theme info
116
* @private

lib/cmd/init.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as TYPES from '../types/types.js' // eslint-disable-line
1+
/// <reference path="../types/types.js" />
22
import { checkIsOnline, checkSshConnection } from '../utils/check.js'
33
import { checkGithubTokenEnv, checkGithubToken, getGithubOrgs } from '../github/auth.js'
44
import { githubRepoFromTemplatePrompts, localRepoFromTemplatePrompts, initType } from './init/prompts.js'
@@ -10,11 +10,6 @@ import { gitCloneDepth1, gitInit, gitAddAll, gitCommit } from '../git/git.js'
1010
import { parseJson, removePath, writeJson } from '../utils/fs.js'
1111
import chalk from 'chalk'
1212

13-
/**
14-
* @ignore
15-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
16-
*/
17-
1813
/**
1914
* #### Create a new GitHub repo based on a GitHub hosted template
2015
* @param {LOCALDATA} data - local data

lib/cmd/init/prompts.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import * as TYPES from '../../types/types.js' // eslint-disable-line
1+
/// <reference path="../../types/types.js" />
22
import select from '@inquirer/select'
33
import input from '@inquirer/input'
44
import confirm from '@inquirer/confirm'
55

6-
/**
7-
* @ignore
8-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
9-
*/
10-
116
/**
127
* #### select what to initialize
138
* @async

lib/git/git.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
import * as TYPES from '../types/types.js' // eslint-disable-line
1+
/// <reference path="../types/types.js" />
22
import gitUrlParse from 'git-url-parse'
33
import ora from 'ora'
44
import { $ } from 'execa'
55

6-
/**
7-
* @ignore
8-
* @typedef {TYPES.GIT_DATA} GIT_DATA {@link GIT_DATA}
9-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
10-
* @typedef {TYPES.COMMIT_MESSAGE} COMMIT_MESSAGE {@link COMMIT_MESSAGE}
11-
*/
12-
136
/**
147
* #### Check is Git Repo
158
* @async

lib/github/auth.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import * as TYPES from '../types/types.js' // eslint-disable-line
1+
/// <reference path="../types/types.js" />
22
import { request } from '@octokit/request'
33
import chalk from 'chalk'
44
import ora from 'ora'
55

6-
/**
7-
* @ignore
8-
* @typedef {TYPES.LOCALDATA} LOCALDATA {@link LOCALDATA}
9-
*/
10-
116
/**
127
* #### check github token is set in env
138
* @memberof GITHUB

0 commit comments

Comments
 (0)