Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: specify env.ts more specifically for newer node versions #7000

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webpack.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
STATIC_DIRECTORY,
BASE_PATH,
API_BASE_PATH,
} = require('./src/utils/env')
} = require('./src/utils/env.ts')

const MONACO_DIR = path.resolve(__dirname, './node_modules/monaco-editor')

Expand Down
2 changes: 1 addition & 1 deletion webpack.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const mergeDev = require('webpack-merge').merge
const commonDev = require('./webpack.common.ts')
const PORT = parseInt(process.env.PORT, 10) || 8080
const PUBLIC = process.env.PUBLIC || undefined
const BASE_PATH_DEV = require('./src/utils/env').BASE_PATH
const BASE_PATH_DEV = require('./src/utils/env.ts').BASE_PATH
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')

module.exports = mergeDev(commonDev, {
Expand Down
2 changes: 1 addition & 1 deletion webpack.fast.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// utils
const common = require('./webpack.common.ts')
const merge = require('webpack-merge').merge
const STATIC_DIR = require('./src/utils/env').STATIC_DIRECTORY
const STATIC_DIR = require('./src/utils/env.ts').STATIC_DIRECTORY

module.exports = merge(common, {
mode: 'none',
Expand Down
2 changes: 1 addition & 1 deletion webpack.lighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const commonPath = require('path')
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
const TerserJSPlugin = require('terser-webpack-plugin')

const DIRECTORY_STATIC = require('./src/utils/env').STATIC_DIRECTORY
const DIRECTORY_STATIC = require('./src/utils/env.ts').STATIC_DIRECTORY

module.exports = mergeWebpack(commonWebpack, {
mode: 'production',
Expand Down
2 changes: 1 addition & 1 deletion webpack.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
const TerserJSPlugin = require('terser-webpack-plugin')
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')

const DIRECTORY_STATIC = require('./src/utils/env').STATIC_DIRECTORY
const DIRECTORY_STATIC = require('./src/utils/env.ts').STATIC_DIRECTORY

module.exports = mergeWebpack(commonWebpack, {
mode: 'production',
Expand Down