Skip to content

Commit

Permalink
fix: specify env.ts more specifically for newer node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoconnell committed Jan 28, 2025
1 parent 5cfee32 commit 67ccc12
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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

0 comments on commit 67ccc12

Please sign in to comment.