chalk, ci-info
This commit is contained in:
parent
90a0cef87e
commit
af40b5b2f8
21 changed files with 45 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import { join } from 'path'
|
||||
import { stringify } from 'querystring'
|
||||
import { API_ROUTE, DOT_NEXT_ALIAS, PAGES_DIR_ALIAS } from '../lib/constants'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import chalk from 'chalk'
|
||||
import ciEnvironment from 'ci-info'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import ciEnvironment from 'next/dist/compiled/ci-info'
|
||||
import crypto from 'crypto'
|
||||
import devalue from 'devalue'
|
||||
import escapeStringRegexp from 'escape-string-regexp'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import textTable from 'next/dist/compiled/text-table'
|
||||
import createStore from 'next/dist/compiled/unistore'
|
||||
import stripAnsi from 'strip-ansi'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
|
||||
const prefixes = {
|
||||
wait: chalk`[ {cyan wait} ] `,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import gzipSize from 'gzip-size'
|
||||
import textTable from 'next/dist/compiled/text-table'
|
||||
import path from 'path'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import crypto from 'crypto'
|
||||
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
|
||||
import path from 'path'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
|
||||
export function getGlobalImportError(file: string | null) {
|
||||
return `Global CSS ${chalk.bold(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import { findConfig } from '../../../../../lib/find-config'
|
||||
import { resolveRequest } from '../../../../../lib/resolve-request'
|
||||
import browserslist from 'next/dist/compiled/browserslist'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import loaderUtils from 'loader-utils'
|
||||
import path from 'path'
|
||||
import { loader } from 'webpack'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
|
||||
const { red, yellow } = chalk
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env node
|
||||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import arg from 'next/dist/compiled/arg/index.js'
|
||||
|
||||
import { cliCommand } from '../bin/next'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import findUp from 'find-up'
|
||||
import {
|
||||
copyFile as copyFileOrig,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import dotenvExpand from 'next/dist/compiled/dotenv-expand'
|
||||
import dotenv, { DotenvConfigOutput } from 'next/dist/compiled/dotenv'
|
||||
import findUp from 'find-up'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import fs from 'fs'
|
||||
import os from 'os'
|
||||
import path from 'path'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import findUp from 'find-up'
|
||||
import os from 'os'
|
||||
import { basename, extname } from 'path'
|
||||
|
|
|
@ -62,8 +62,6 @@
|
|||
"@next/polyfill-nomodule": "9.3.4-canary.0",
|
||||
"autodll-webpack-plugin": "0.4.2",
|
||||
"cache-loader": "4.1.0",
|
||||
"chalk": "2.4.2",
|
||||
"ci-info": "2.0.0",
|
||||
"compression": "1.7.4",
|
||||
"conf": "5.0.0",
|
||||
"content-type": "1.0.4",
|
||||
|
@ -191,6 +189,8 @@
|
|||
"babel-plugin-transform-define": "2.0.0",
|
||||
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
||||
"browserslist": "4.8.3",
|
||||
"chalk": "2.4.2",
|
||||
"ci-info": "2.0.0",
|
||||
"dotenv": "8.2.0",
|
||||
"dotenv-expand": "5.1.0",
|
||||
"nanoid": "2.0.3",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { join } from 'path'
|
||||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import { isWriteable } from '../../build/is-writeable'
|
||||
import { warn } from '../../build/output/log'
|
||||
|
||||
|
|
|
@ -256,6 +256,20 @@ export async function ncc_browserslist(task, opts) {
|
|||
.target('dist/compiled/browserslist')
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
export async function ncc_chalk(task, opts) {
|
||||
await task
|
||||
.source(opts.src || relative(__dirname, require.resolve('chalk')))
|
||||
.ncc({ packageName: 'chalk' })
|
||||
.target('dist/compiled/chalk')
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
export async function ncc_ci_info(task, opts) {
|
||||
await task
|
||||
.source(opts.src || relative(__dirname, require.resolve('ci-info')))
|
||||
.ncc({ packageName: 'ci-info' })
|
||||
.target('dist/compiled/ci-info')
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
export async function ncc_dotenv(task, opts) {
|
||||
await task
|
||||
.source(opts.src || relative(__dirname, require.resolve('dotenv')))
|
||||
|
@ -325,6 +339,8 @@ export async function precompile(task) {
|
|||
'ncc_babel_plugin_transform_define',
|
||||
'ncc_babel_plugin_transform_react_remove_prop_types',
|
||||
'ncc_browserslist',
|
||||
'ncc_chalk',
|
||||
'ncc_ci_info',
|
||||
'ncc_dotenv',
|
||||
'ncc_dotenv_expand',
|
||||
'ncc_nanoid',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import ciEnvironment from 'ci-info'
|
||||
import ciEnvironment from 'next/dist/compiled/ci-info'
|
||||
|
||||
const { isCI: _isCI, name: _name } = ciEnvironment
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chalk from 'chalk'
|
||||
import chalk from 'next/dist/compiled/chalk'
|
||||
import Conf from 'conf'
|
||||
import { BinaryLike, createHash, randomBytes } from 'crypto'
|
||||
import isDockerFunction from 'is-docker'
|
||||
|
|
8
packages/next/types/misc.d.ts
vendored
8
packages/next/types/misc.d.ts
vendored
|
@ -55,6 +55,14 @@ declare module 'next/dist/compiled/babel--types' {
|
|||
export = m
|
||||
}
|
||||
declare module 'next/dist/compiled/browserslist'
|
||||
declare module 'next/dist/compiled/chalk' {
|
||||
import m from 'chalk'
|
||||
export = m
|
||||
}
|
||||
declare module 'next/dist/compiled/ci-info' {
|
||||
import m from 'ci-info'
|
||||
export = m
|
||||
}
|
||||
declare module 'next/dist/compiled/dotenv' {
|
||||
import m from 'dotenv'
|
||||
export = m
|
||||
|
|
Loading…
Reference in a new issue