Commit 6a8455e7 authored by Guy Bedford's avatar Guy Bedford Committed by Joe Haddad

escape-string-regexp

parent a9a704e7
...@@ -2,7 +2,7 @@ import chalk from 'next/dist/compiled/chalk' ...@@ -2,7 +2,7 @@ import chalk from 'next/dist/compiled/chalk'
import ciEnvironment from 'next/dist/compiled/ci-info' import ciEnvironment from 'next/dist/compiled/ci-info'
import crypto from 'crypto' import crypto from 'crypto'
import devalue from 'next/dist/compiled/devalue' import devalue from 'next/dist/compiled/devalue'
import escapeStringRegexp from 'escape-string-regexp' import escapeStringRegexp from 'next/dist/compiled/escape-string-regexp'
import findUp from 'find-up' import findUp from 'find-up'
import fs from 'fs' import fs from 'fs'
import Worker from 'jest-worker' import Worker from 'jest-worker'
......
import devalue from 'next/dist/compiled/devalue' import devalue from 'next/dist/compiled/devalue'
import escapeRegexp from 'escape-string-regexp' import escapeRegexp from 'next/dist/compiled/escape-string-regexp'
import { join } from 'path' import { join } from 'path'
import { parse } from 'querystring' import { parse } from 'querystring'
import { loader } from 'webpack' import { loader } from 'webpack'
......
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
"conf": "5.0.0", "conf": "5.0.0",
"css-loader": "3.3.0", "css-loader": "3.3.0",
"cssnano-simple": "1.0.0", "cssnano-simple": "1.0.0",
"escape-string-regexp": "2.0.0",
"etag": "1.8.1", "etag": "1.8.1",
"file-loader": "4.2.0", "file-loader": "4.2.0",
"finally-polyfill": "0.1.0", "finally-polyfill": "0.1.0",
...@@ -193,6 +192,7 @@ ...@@ -193,6 +192,7 @@
"devalue": "2.0.1", "devalue": "2.0.1",
"dotenv": "8.2.0", "dotenv": "8.2.0",
"dotenv-expand": "5.1.0", "dotenv-expand": "5.1.0",
"escape-string-regexp": "2.0.0",
"nanoid": "2.0.3", "nanoid": "2.0.3",
"resolve": "1.11.0", "resolve": "1.11.0",
"taskr": "1.1.0", "taskr": "1.1.0",
......
...@@ -312,6 +312,15 @@ export async function ncc_dotenv_expand(task, opts) { ...@@ -312,6 +312,15 @@ export async function ncc_dotenv_expand(task, opts) {
.target('dist/compiled/dotenv-expand') .target('dist/compiled/dotenv-expand')
} }
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
export async function ncc_escape_string_regexp(task, opts) {
await task
.source(
opts.src || relative(__dirname, require.resolve('escape-string-regexp'))
)
.ncc({ packageName: 'escape-string-regexp' })
.target('dist/compiled/escape-string-regexp')
}
// eslint-disable-next-line camelcase
export async function ncc_nanoid(task, opts) { export async function ncc_nanoid(task, opts) {
await task await task
.source(opts.src || relative(__dirname, require.resolve('nanoid'))) .source(opts.src || relative(__dirname, require.resolve('nanoid')))
...@@ -375,6 +384,7 @@ export async function precompile(task) { ...@@ -375,6 +384,7 @@ export async function precompile(task) {
'ncc_devalue', 'ncc_devalue',
'ncc_dotenv', 'ncc_dotenv',
'ncc_dotenv_expand', 'ncc_dotenv_expand',
'ncc_escape_string_regexp',
'ncc_nanoid', 'ncc_nanoid',
'ncc_resolve', 'ncc_resolve',
'ncc_text_table', 'ncc_text_table',
......
...@@ -88,7 +88,10 @@ declare module 'next/dist/compiled/dotenv-expand' { ...@@ -88,7 +88,10 @@ declare module 'next/dist/compiled/dotenv-expand' {
import m from 'dotenv-expand' import m from 'dotenv-expand'
export = m export = m
} }
declare module 'next/dist/compiled/escape-string-regexp' {
import m from 'escape-string-regexp'
export = m
}
declare module 'next/dist/compiled/nanoid/index.js' { declare module 'next/dist/compiled/nanoid/index.js' {
function nanoid(size?: number): string function nanoid(size?: number): string
export = nanoid export = nanoid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment