提交 470cc0bc 编写于 作者: fxy060608's avatar fxy060608

feat(mp): custom project.config.json

上级 8f798176
...@@ -13,9 +13,11 @@ var path__default = /*#__PURE__*/_interopDefaultLegacy(path); ...@@ -13,9 +13,11 @@ var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
var component2 = true; var component2 = true;
var enableAppxNg = true; var enableAppxNg = true;
var enableNodeModuleBabelTransform = true;
var source = { var source = {
component2: component2, component2: component2,
enableAppxNg: enableAppxNg enableAppxNg: enableAppxNg,
enableNodeModuleBabelTransform: enableNodeModuleBabelTransform
}; };
function transformRef(node, context) { function transformRef(node, context) {
...@@ -222,6 +224,7 @@ const options = { ...@@ -222,6 +224,7 @@ const options = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['mini.project.json', 'project.my.json'],
source, source,
}, },
template: Object.assign(Object.assign({}, miniProgram), { customElements, filter: { template: Object.assign(Object.assign({}, miniProgram), { customElements, filter: {
......
{ {
"component2": true, "component2": true,
"enableAppxNg": true "enableAppxNg": true,
"enableNodeModuleBabelTransform": true
} }
...@@ -105,6 +105,7 @@ export const options: UniMiniProgramPluginOptions = { ...@@ -105,6 +105,7 @@ export const options: UniMiniProgramPluginOptions = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['mini.project.json', 'project.my.json'],
source, source,
}, },
template: { template: {
......
...@@ -110,6 +110,7 @@ const options = { ...@@ -110,6 +110,7 @@ const options = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.swan.json'],
source, source,
}, },
template: Object.assign(Object.assign({}, miniProgram), { customElements, filter: { template: Object.assign(Object.assign({}, miniProgram), { customElements, filter: {
......
...@@ -61,6 +61,7 @@ export const options: UniMiniProgramPluginOptions = { ...@@ -61,6 +61,7 @@ export const options: UniMiniProgramPluginOptions = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.swan.json'],
source, source,
}, },
template: { template: {
......
...@@ -175,6 +175,7 @@ const options = { ...@@ -175,6 +175,7 @@ const options = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.ks.json'],
source, source,
}, },
template: Object.assign(Object.assign({}, miniProgram), { filter: undefined, extname: '.ksml', compilerOptions }), template: Object.assign(Object.assign({}, miniProgram), { filter: undefined, extname: '.ksml', compilerOptions }),
......
...@@ -60,6 +60,7 @@ export const options: UniMiniProgramPluginOptions = { ...@@ -60,6 +60,7 @@ export const options: UniMiniProgramPluginOptions = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.ks.json'],
source, source,
}, },
template: { template: {
......
...@@ -107,6 +107,7 @@ const options = { ...@@ -107,6 +107,7 @@ const options = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.tt.json'],
source, source,
}, },
template: Object.assign(Object.assign({}, miniProgram), { filter: { template: Object.assign(Object.assign({}, miniProgram), { filter: {
...@@ -145,6 +146,7 @@ options.template.slot.fallbackContent = false; ...@@ -145,6 +146,7 @@ options.template.slot.fallbackContent = false;
// 飞书不支持: // 飞书不支持:
// <view tt:for="{{items}}" tt:for-item="item" tt:key="id" slot="{{item.slot}}">{{item.text}}</view> // <view tt:for="{{items}}" tt:for-item="item" tt:key="id" slot="{{item.slot}}">{{item.text}}</view>
options.template.slot.dynamicSlotNames = false; options.template.slot.dynamicSlotNames = false;
options.project.config = ['project.lark.json'];
var index = [uniMiniProgramToutiaoPlugin, ...initMiniProgramPlugin__default["default"](options)]; var index = [uniMiniProgramToutiaoPlugin, ...initMiniProgramPlugin__default["default"](options)];
module.exports = index; module.exports = index;
...@@ -21,12 +21,10 @@ ...@@ -21,12 +21,10 @@
"main": "dist/uni.compiler.js" "main": "dist/uni.compiler.js"
}, },
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
"devDependencies": {
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3040120220308001"
},
"dependencies": { "dependencies": {
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3040120220308001", "@dcloudio/uni-cli-shared": "3.0.0-alpha-3040120220308001",
"@dcloudio/uni-mp-compiler": "3.0.0-alpha-3040120220308001", "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3040120220308001",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3040120220308001",
"@dcloudio/uni-mp-vite": "3.0.0-alpha-3040120220308001", "@dcloudio/uni-mp-vite": "3.0.0-alpha-3040120220308001",
"@dcloudio/uni-mp-vue": "3.0.0-alpha-3040120220308001", "@dcloudio/uni-mp-vue": "3.0.0-alpha-3040120220308001",
"@dcloudio/uni-shared": "3.0.0-alpha-3040120220308001", "@dcloudio/uni-shared": "3.0.0-alpha-3040120220308001",
......
...@@ -25,4 +25,5 @@ options.template.slot.fallbackContent = false ...@@ -25,4 +25,5 @@ options.template.slot.fallbackContent = false
// 飞书不支持: // 飞书不支持:
// <view tt:for="{{items}}" tt:for-item="item" tt:key="id" slot="{{item.slot}}">{{item.text}}</view> // <view tt:for="{{items}}" tt:for-item="item" tt:key="id" slot="{{item.slot}}">{{item.text}}</view>
options.template.slot.dynamicSlotNames = false options.template.slot.dynamicSlotNames = false
options.project!.config = ['project.lark.json']
export default [uniMiniProgramToutiaoPlugin, ...initMiniProgramPlugin(options)] export default [uniMiniProgramToutiaoPlugin, ...initMiniProgramPlugin(options)]
...@@ -137,6 +137,7 @@ const options = { ...@@ -137,6 +137,7 @@ const options = {
}, },
project: { project: {
filename: 'project.config.json', filename: 'project.config.json',
config: ['project.qq.json', 'project.config.json'],
source, source,
}, },
template: Object.assign(Object.assign({}, miniProgram), { filter: { template: Object.assign(Object.assign({}, miniProgram), { filter: {
......
...@@ -69,6 +69,7 @@ export const options: UniMiniProgramPluginOptions = { ...@@ -69,6 +69,7 @@ export const options: UniMiniProgramPluginOptions = {
}, },
project: { project: {
filename: 'project.config.json', filename: 'project.config.json',
config: ['project.qq.json', 'project.config.json'],
source, source,
}, },
template: { template: {
......
...@@ -107,6 +107,7 @@ const options = { ...@@ -107,6 +107,7 @@ const options = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.tt.json'],
source, source,
}, },
template: Object.assign(Object.assign({}, miniProgram), { filter: { template: Object.assign(Object.assign({}, miniProgram), { filter: {
......
...@@ -60,6 +60,7 @@ export const options: UniMiniProgramPluginOptions = { ...@@ -60,6 +60,7 @@ export const options: UniMiniProgramPluginOptions = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.tt.json'],
source, source,
}, },
template: { template: {
......
...@@ -61,6 +61,7 @@ export interface UniMiniProgramPluginOptions { ...@@ -61,6 +61,7 @@ export interface UniMiniProgramPluginOptions {
} }
project?: { project?: {
filename: string filename: string
config: string[]
source: Record<string, any> source: Record<string, any>
} }
template: { template: {
......
import fs from 'fs'
import path from 'path' import path from 'path'
import { Plugin } from 'vite' import { Plugin } from 'vite'
import { hasOwn } from '@vue/shared' import { hasOwn } from '@vue/shared'
import { import {
defineUniManifestJsonPlugin, defineUniManifestJsonPlugin,
getLocaleFiles, getLocaleFiles,
parseJson,
parseMiniProgramProjectJson, parseMiniProgramProjectJson,
parsePagesJsonOnce, parsePagesJsonOnce,
} from '@dcloudio/uni-cli-shared' } from '@dcloudio/uni-cli-shared'
import { UniMiniProgramPluginOptions } from '../plugin' import { UniMiniProgramPluginOptions } from '../plugin'
function findUserProjectConfigFile(inputDir: string, config: string[]) {
for (let i = 0; i < config.length; i++) {
const projectFilename = path.resolve(inputDir, config[i])
// 根目录包含指定文件,则直接拷贝
if (fs.existsSync(projectFilename)) {
return projectFilename
}
}
}
export function uniManifestJsonPlugin( export function uniManifestJsonPlugin(
options: UniMiniProgramPluginOptions options: UniMiniProgramPluginOptions
): Plugin { ): Plugin {
let projectJson: Record<string, any> let projectJson: Record<string, any>
let userProjectFilename: string | undefined
return defineUniManifestJsonPlugin((opts) => { return defineUniManifestJsonPlugin((opts) => {
const inputDir = process.env.UNI_INPUT_DIR
const platform = process.env.UNI_PLATFORM
if (options.project) {
userProjectFilename = findUserProjectConfigFile(
inputDir,
options.project.config
)
}
return { return {
name: 'uni:mp-manifest-json', name: 'uni:mp-manifest-json',
enforce: 'pre', enforce: 'pre',
...@@ -21,34 +42,40 @@ export function uniManifestJsonPlugin( ...@@ -21,34 +42,40 @@ export function uniManifestJsonPlugin(
if (!opts.filter(id)) { if (!opts.filter(id)) {
return return
} }
const inputDir = process.env.UNI_INPUT_DIR
const platform = process.env.UNI_PLATFORM
this.addWatchFile(path.resolve(inputDir, 'manifest.json')) this.addWatchFile(path.resolve(inputDir, 'manifest.json'))
getLocaleFiles(path.resolve(inputDir, 'locale')).forEach((filepath) => { getLocaleFiles(path.resolve(inputDir, 'locale')).forEach((filepath) => {
this.addWatchFile(filepath) this.addWatchFile(filepath)
}) })
if (options.project) { if (options.project) {
const template = options.project.source // 根目录包含指定文件,则直接拷贝
if (hasOwn(template, 'appid')) { if (userProjectFilename) {
let projectname = path.basename(inputDir) this.addWatchFile(userProjectFilename)
if (projectname === 'src') { projectJson = parseJson(
projectname = path.basename(path.dirname(inputDir)) fs.readFileSync(userProjectFilename, 'utf8')
} )
template.projectname = projectname } else {
// TODO condition const template = options.project.source
if (process.env.UNI_AUTOMATOR_WS_ENDPOINT) { if (hasOwn(template, 'appid')) {
if (!template.setting) { let projectname = path.basename(inputDir)
template.setting = {} if (projectname === 'src') {
projectname = path.basename(path.dirname(inputDir))
} }
template.setting.urlCheck = false template.projectname = projectname
// TODO condition
if (process.env.UNI_AUTOMATOR_WS_ENDPOINT) {
if (!template.setting) {
template.setting = {}
}
template.setting.urlCheck = false
}
projectJson = parseMiniProgramProjectJson(code, platform, {
template,
pagesJson: parsePagesJsonOnce(inputDir, platform),
})
} else {
// 无需解析,直接拷贝,如 quickapp-webview
projectJson = template
} }
projectJson = parseMiniProgramProjectJson(code, platform, {
template,
pagesJson: parsePagesJsonOnce(inputDir, platform),
})
} else {
// 无需解析,直接拷贝,如 quickapp-webview
projectJson = template
} }
} }
......
...@@ -141,6 +141,7 @@ const options = { ...@@ -141,6 +141,7 @@ const options = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.wx.json', 'project.config.json'],
source, source,
}, },
template: Object.assign(Object.assign({}, miniProgram), { customElements, filter: { template: Object.assign(Object.assign({}, miniProgram), { customElements, filter: {
......
...@@ -98,6 +98,7 @@ export const options: UniMiniProgramPluginOptions = { ...@@ -98,6 +98,7 @@ export const options: UniMiniProgramPluginOptions = {
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: ['project.wx.json', 'project.config.json'],
source, source,
}, },
template: { template: {
......
...@@ -105,6 +105,7 @@ ${filter.code} ...@@ -105,6 +105,7 @@ ${filter.code}
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: [],
source, source,
}, },
}; };
......
...@@ -69,6 +69,7 @@ ${filter.code} ...@@ -69,6 +69,7 @@ ${filter.code}
}, },
project: { project: {
filename: projectConfigFilename, filename: projectConfigFilename,
config: [],
source, source,
}, },
} }
...@@ -8,7 +8,7 @@ importers: ...@@ -8,7 +8,7 @@ importers:
'@dcloudio/uni-api': 3.0.0-alpha-3040120220308001 '@dcloudio/uni-api': 3.0.0-alpha-3040120220308001
'@dcloudio/uni-app': 3.0.0-alpha-3040120220308001 '@dcloudio/uni-app': 3.0.0-alpha-3040120220308001
'@jest/types': ^27.0.2 '@jest/types': ^27.0.2
'@microsoft/api-extractor': ^7.19.2 '@microsoft/api-extractor': ^7.19.4
'@rollup/plugin-alias': ^3.1.1 '@rollup/plugin-alias': ^3.1.1
'@rollup/plugin-babel': ^5.3.0 '@rollup/plugin-babel': ^5.3.0
'@rollup/plugin-commonjs': ^17.0.0 '@rollup/plugin-commonjs': ^17.0.0
...@@ -17,7 +17,7 @@ importers: ...@@ -17,7 +17,7 @@ importers:
'@rollup/plugin-replace': ^2.3.4 '@rollup/plugin-replace': ^2.3.4
'@rollup/plugin-strip': ^2.0.0 '@rollup/plugin-strip': ^2.0.0
'@types/jest': ^26.0.23 '@types/jest': ^26.0.23
'@typescript-eslint/parser': ^5.3.0 '@typescript-eslint/parser': ^5.14.0
'@vitejs/plugin-vue': ^2.2.4 '@vitejs/plugin-vue': ^2.2.4
'@vitejs/plugin-vue-jsx': ^1.3.8 '@vitejs/plugin-vue-jsx': ^1.3.8
'@vue/reactivity': 3.2.31 '@vue/reactivity': 3.2.31
...@@ -55,7 +55,7 @@ importers: ...@@ -55,7 +55,7 @@ importers:
'@dcloudio/uni-api': link:packages/uni-api '@dcloudio/uni-api': link:packages/uni-api
'@dcloudio/uni-app': link:packages/uni-app '@dcloudio/uni-app': link:packages/uni-app
'@jest/types': 27.4.2 '@jest/types': 27.4.2
'@microsoft/api-extractor': 7.19.2 '@microsoft/api-extractor': 7.19.4
'@rollup/plugin-alias': 3.1.8_rollup@2.60.2 '@rollup/plugin-alias': 3.1.8_rollup@2.60.2
'@rollup/plugin-babel': 5.3.0_rollup@2.60.2 '@rollup/plugin-babel': 5.3.0_rollup@2.60.2
'@rollup/plugin-commonjs': 17.1.0_rollup@2.60.2 '@rollup/plugin-commonjs': 17.1.0_rollup@2.60.2
...@@ -64,7 +64,7 @@ importers: ...@@ -64,7 +64,7 @@ importers:
'@rollup/plugin-replace': 2.4.2_rollup@2.60.2 '@rollup/plugin-replace': 2.4.2_rollup@2.60.2
'@rollup/plugin-strip': 2.1.0_rollup@2.60.2 '@rollup/plugin-strip': 2.1.0_rollup@2.60.2
'@types/jest': 26.0.24 '@types/jest': 26.0.24
'@typescript-eslint/parser': 5.5.0_eslint@7.32.0+typescript@4.6.2 '@typescript-eslint/parser': 5.14.0_eslint@7.32.0+typescript@4.6.2
'@vitejs/plugin-vue': 2.2.4_vite@2.8.6+vue@3.2.31 '@vitejs/plugin-vue': 2.2.4_vite@2.8.6+vue@3.2.31
'@vitejs/plugin-vue-jsx': 1.3.8 '@vitejs/plugin-vue-jsx': 1.3.8
'@vue/reactivity': 3.2.31 '@vue/reactivity': 3.2.31
...@@ -648,12 +648,11 @@ importers: ...@@ -648,12 +648,11 @@ importers:
dependencies: dependencies:
'@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-cli-shared': link:../uni-cli-shared
'@dcloudio/uni-mp-compiler': link:../uni-mp-compiler '@dcloudio/uni-mp-compiler': link:../uni-mp-compiler
'@dcloudio/uni-mp-toutiao': link:../uni-mp-toutiao
'@dcloudio/uni-mp-vite': link:../uni-mp-vite '@dcloudio/uni-mp-vite': link:../uni-mp-vite
'@dcloudio/uni-mp-vue': link:../uni-mp-vue '@dcloudio/uni-mp-vue': link:../uni-mp-vue
'@dcloudio/uni-shared': link:../uni-shared '@dcloudio/uni-shared': link:../uni-shared
'@vue/compiler-core': 3.2.31 '@vue/compiler-core': 3.2.31
devDependencies:
'@dcloudio/uni-mp-toutiao': link:../uni-mp-toutiao
packages/uni-mp-qq: packages/uni-mp-qq:
specifiers: specifiers:
...@@ -2823,24 +2822,24 @@ packages: ...@@ -2823,24 +2822,24 @@ packages:
engines: {node: '>=4.2'} engines: {node: '>=4.2'}
dev: true dev: true
/@microsoft/api-extractor-model/7.15.1: /@microsoft/api-extractor-model/7.15.3:
resolution: {integrity: sha512-DWfS1o3oMY0mzdO3OuQbD/9vzn80jwM6tFd7XbiYnkpxwhD83LMGXz7NZWwSh+IaA+9w3LF4w62fT31Qq+dAMw==} resolution: {integrity: sha512-NkSjolmSI7NGvbdz0Y7kjQfdpD+j9E5CwXTxEyjDqxd10MI7GXV8DnAsQ57GFJcgHKgTjf2aUnYfMJ9w3aMicw==}
dependencies: dependencies:
'@microsoft/tsdoc': 0.13.2 '@microsoft/tsdoc': 0.13.2
'@microsoft/tsdoc-config': 0.15.2 '@microsoft/tsdoc-config': 0.15.2
'@rushstack/node-core-library': 3.44.2 '@rushstack/node-core-library': 3.45.0
dev: true dev: true
/@microsoft/api-extractor/7.19.2: /@microsoft/api-extractor/7.19.4:
resolution: {integrity: sha512-LxSa9lwp7eYtM4i5y/1n79QpotPKlmpCrVQbkb0LAHE1sCRHpZDTb6p3cMJthDhYPMjAYKOLfq639GwtZrg23Q==} resolution: {integrity: sha512-iehC6YA3DGJvxTUaK7HUtQmP6hAQU07+Q/OR8TG4dVR6KpqCi9UPEVk8AgCvQkiK+6FbVEFQTx0qLuYk4EeuHg==}
hasBin: true hasBin: true
dependencies: dependencies:
'@microsoft/api-extractor-model': 7.15.1 '@microsoft/api-extractor-model': 7.15.3
'@microsoft/tsdoc': 0.13.2 '@microsoft/tsdoc': 0.13.2
'@microsoft/tsdoc-config': 0.15.2 '@microsoft/tsdoc-config': 0.15.2
'@rushstack/node-core-library': 3.44.2 '@rushstack/node-core-library': 3.45.0
'@rushstack/rig-package': 0.3.6 '@rushstack/rig-package': 0.3.7
'@rushstack/ts-command-line': 4.10.5 '@rushstack/ts-command-line': 4.10.6
colors: 1.2.5 colors: 1.2.5
lodash: 4.17.21 lodash: 4.17.21
resolve: 1.17.0 resolve: 1.17.0
...@@ -2986,8 +2985,8 @@ packages: ...@@ -2986,8 +2985,8 @@ packages:
estree-walker: 2.0.2 estree-walker: 2.0.2
picomatch: 2.3.0 picomatch: 2.3.0
/@rushstack/node-core-library/3.44.2: /@rushstack/node-core-library/3.45.0:
resolution: {integrity: sha512-lQ8Ct267UKkNSJSDxpBWn7SyyITWQ9l3Xqww0V+YY0rMt02r9eiGvwwPaU1ugJW7IMVo6r/HXvgbmpOSPyzGyg==} resolution: {integrity: sha512-YMuIJl19vQT1+g/OU9mLY6T5ZBT9uDlmeXExDQACpGuxTJW+LHNbk/lRX+eCApQI2eLBlaL4U68r3kZlqwbdmw==}
dependencies: dependencies:
'@types/node': 12.20.24 '@types/node': 12.20.24
colors: 1.2.5 colors: 1.2.5
...@@ -3000,15 +2999,15 @@ packages: ...@@ -3000,15 +2999,15 @@ packages:
z-schema: 5.0.2 z-schema: 5.0.2
dev: true dev: true
/@rushstack/rig-package/0.3.6: /@rushstack/rig-package/0.3.7:
resolution: {integrity: sha512-H/uFsAT6cD4JCYrlQXYMZg+wPVECByFoJLGqfGRiTwSS5ngQw9QxnFV2mPG2LrxFUsMjLQ2lsrYr523700XzfA==} resolution: {integrity: sha512-pzMsTSeTC8IiZ6EJLr53gGMvhT4oLWH+hxD7907cHyWuIUlEXFtu/2pK25vUQT13nKp5DJCWxXyYoGRk/h6rtA==}
dependencies: dependencies:
resolve: 1.17.0 resolve: 1.17.0
strip-json-comments: 3.1.1 strip-json-comments: 3.1.1
dev: true dev: true
/@rushstack/ts-command-line/4.10.5: /@rushstack/ts-command-line/4.10.6:
resolution: {integrity: sha512-5fVlTDbKsJ5WyT6L7NrnOlLG3uoITKxoqTPP2j0QZEi95kPbVT4+VPZaXXDJtkrao9qrIyig8pLK9WABY1bb3w==} resolution: {integrity: sha512-Y3GkUag39sTIlukDg9mUp8MCHrrlJ27POrBNRQGc/uF+VVgX8M7zMzHch5zP6O1QVquWgD7Engdpn2piPYaS/g==}
dependencies: dependencies:
'@types/argparse': 1.0.38 '@types/argparse': 1.0.38
argparse: 1.0.10 argparse: 1.0.10
...@@ -3339,8 +3338,8 @@ packages: ...@@ -3339,8 +3338,8 @@ packages:
dev: true dev: true
optional: true optional: true
/@typescript-eslint/parser/5.5.0_eslint@7.32.0+typescript@4.6.2: /@typescript-eslint/parser/5.14.0_eslint@7.32.0+typescript@4.6.2:
resolution: {integrity: sha512-JsXBU+kgQOAgzUn2jPrLA+Rd0Y1dswOlX3hp8MuRO1hQDs6xgHtbCXEiAu7bz5hyVURxbXcA2draasMbNqrhmg==} resolution: {integrity: sha512-aHJN8/FuIy1Zvqk4U/gcO/fxeMKyoSv/rS46UXMXOJKVsLQ+iYPuXNbpbH7cBLcpSbmyyFbwrniLx5+kutu1pw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
...@@ -3349,9 +3348,9 @@ packages: ...@@ -3349,9 +3348,9 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/scope-manager': 5.5.0 '@typescript-eslint/scope-manager': 5.14.0
'@typescript-eslint/types': 5.5.0 '@typescript-eslint/types': 5.14.0
'@typescript-eslint/typescript-estree': 5.5.0_typescript@4.6.2 '@typescript-eslint/typescript-estree': 5.14.0_typescript@4.6.2
debug: 4.3.3 debug: 4.3.3
eslint: 7.32.0 eslint: 7.32.0
typescript: 4.6.2 typescript: 4.6.2
...@@ -3359,21 +3358,21 @@ packages: ...@@ -3359,21 +3358,21 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/scope-manager/5.5.0: /@typescript-eslint/scope-manager/5.14.0:
resolution: {integrity: sha512-0/r656RmRLo7CbN4Mdd+xZyPJ/fPCKhYdU6mnZx+8msAD8nJSP8EyCFkzbd6vNVZzZvWlMYrSNekqGrCBqFQhg==} resolution: {integrity: sha512-LazdcMlGnv+xUc5R4qIlqH0OWARyl2kaP8pVCS39qSL3Pd1F7mI10DbdXeARcE62sVQE4fHNvEqMWsypWO+yEw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies: dependencies:
'@typescript-eslint/types': 5.5.0 '@typescript-eslint/types': 5.14.0
'@typescript-eslint/visitor-keys': 5.5.0 '@typescript-eslint/visitor-keys': 5.14.0
dev: true dev: true
/@typescript-eslint/types/5.5.0: /@typescript-eslint/types/5.14.0:
resolution: {integrity: sha512-OaYTqkW3GnuHxqsxxJ6KypIKd5Uw7bFiQJZRyNi1jbMJnK3Hc/DR4KwB6KJj6PBRkJJoaNwzMNv9vtTk87JhOg==} resolution: {integrity: sha512-BR6Y9eE9360LNnW3eEUqAg6HxS9Q35kSIs4rp4vNHRdfg0s+/PgHgskvu5DFTM7G5VKAVjuyaN476LCPrdA7Mw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true dev: true
/@typescript-eslint/typescript-estree/5.5.0_typescript@4.6.2: /@typescript-eslint/typescript-estree/5.14.0_typescript@4.6.2:
resolution: {integrity: sha512-pVn8btYUiYrjonhMAO0yG8lm7RApzy2L4RC7Td/mC/qFkyf6vRbGyZozoA94+w6D2Y2GRqpMoCWcwx/EUOzyoQ==} resolution: {integrity: sha512-QGnxvROrCVtLQ1724GLTHBTR0lZVu13izOp9njRvMkCBgWX26PKvmMP8k82nmXBRD3DQcFFq2oj3cKDwr0FaUA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
typescript: '*' typescript: '*'
...@@ -3381,8 +3380,8 @@ packages: ...@@ -3381,8 +3380,8 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/types': 5.5.0 '@typescript-eslint/types': 5.14.0
'@typescript-eslint/visitor-keys': 5.5.0 '@typescript-eslint/visitor-keys': 5.14.0
debug: 4.3.3 debug: 4.3.3
globby: 11.0.4 globby: 11.0.4
is-glob: 4.0.3 is-glob: 4.0.3
...@@ -3393,11 +3392,11 @@ packages: ...@@ -3393,11 +3392,11 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/visitor-keys/5.5.0: /@typescript-eslint/visitor-keys/5.14.0:
resolution: {integrity: sha512-4GzJ1kRtsWzHhdM40tv0ZKHNSbkDhF0Woi/TDwVJX6UICwJItvP7ZTXbjTkCdrors7ww0sYe0t+cIKDAJwZ7Kw==} resolution: {integrity: sha512-yL0XxfzR94UEkjBqyymMLgCBdojzEuy/eim7N9/RIcTNxpJudAcqsU8eRyfzBbcEzGoPWfdM3AGak3cN08WOIw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies: dependencies:
'@typescript-eslint/types': 5.5.0 '@typescript-eslint/types': 5.14.0
eslint-visitor-keys: 3.1.0 eslint-visitor-keys: 3.1.0
dev: true dev: true
...@@ -5625,7 +5624,6 @@ packages: ...@@ -5625,7 +5624,6 @@ packages:
glob-parent: 5.1.2 glob-parent: 5.1.2
merge2: 1.4.1 merge2: 1.4.1
micromatch: 4.0.4 micromatch: 4.0.4
dev: false
/fast-glob/3.2.7: /fast-glob/3.2.7:
resolution: {integrity: sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==} resolution: {integrity: sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==}
...@@ -5636,6 +5634,7 @@ packages: ...@@ -5636,6 +5634,7 @@ packages:
glob-parent: 5.1.2 glob-parent: 5.1.2
merge2: 1.4.1 merge2: 1.4.1
micromatch: 4.0.4 micromatch: 4.0.4
dev: false
/fast-json-stable-stringify/2.1.0: /fast-json-stable-stringify/2.1.0:
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
...@@ -5936,7 +5935,7 @@ packages: ...@@ -5936,7 +5935,7 @@ packages:
dependencies: dependencies:
array-union: 2.1.0 array-union: 2.1.0
dir-glob: 3.0.1 dir-glob: 3.0.1
fast-glob: 3.2.7 fast-glob: 3.2.11
ignore: 5.1.9 ignore: 5.1.9
merge2: 1.4.1 merge2: 1.4.1
slash: 3.0.0 slash: 3.0.0
...@@ -8275,7 +8274,7 @@ packages: ...@@ -8275,7 +8274,7 @@ packages:
/resolve/1.19.0: /resolve/1.19.0:
resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==}
dependencies: dependencies:
is-core-module: 2.8.0 is-core-module: 2.8.1
path-parse: 1.0.7 path-parse: 1.0.7
dev: true dev: true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册