yarn: update camelcase

This required converting the module that uses camelcase to mjs due to
breaking change in camelcase.
This commit is contained in:
David Lechner
2022-06-06 11:57:48 -05:00
committed by David Lechner
parent 3d3711c38d
commit 9c95b25b87
4 changed files with 15 additions and 8 deletions
+1
View File
@@ -30,6 +30,7 @@ module.exports = {
},
ignorePatterns: [
'config/**/*.js',
'config/**/*.mjs',
'scripts/*.js',
'test/env.js',
'.eslintrc.js',
@@ -1,12 +1,11 @@
'use strict';
const path = require('path');
const camelcase = require('camelcase');
import path from 'path';
import camelcase from 'camelcase';
// This is a custom Jest transformer turning file imports into filenames.
// http://facebook.github.io/jest/docs/en/webpack.html
module.exports = {
export default {
process(src, filename) {
const assetFilename = JSON.stringify(path.basename(filename));
+2 -2
View File
@@ -41,7 +41,7 @@
"bfj": "^7.0.2",
"browser-fs-access": "^0.29.6",
"browserslist": "^4.18.1",
"camelcase": "^6.2.1",
"camelcase": "^7.0.0",
"canvas": "^2.9.1",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"copy-webpack-plugin": "^11.0.0",
@@ -182,7 +182,7 @@
"transform": {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.mjs"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\](?!(monaco-editor|react-monaco-editor)[/\\\\]).+\\.(js|jsx|mjs|cjs|ts|tsx)$",
+9 -2
View File
@@ -2321,7 +2321,7 @@ __metadata:
bfj: ^7.0.2
browser-fs-access: ^0.29.6
browserslist: ^4.18.1
camelcase: ^6.2.1
camelcase: ^7.0.0
canvas: ^2.9.1
case-sensitive-paths-webpack-plugin: ^2.4.0
copy-webpack-plugin: ^11.0.0
@@ -5811,13 +5811,20 @@ __metadata:
languageName: node
linkType: hard
"camelcase@npm:^6.2.0, camelcase@npm:^6.2.1":
"camelcase@npm:^6.2.0":
version: 6.3.0
resolution: "camelcase@npm:6.3.0"
checksum: 8c96818a9076434998511251dcb2761a94817ea17dbdc37f47ac080bd088fc62c7369429a19e2178b993497132c8cbcf5cc1f44ba963e76782ba469c0474938d
languageName: node
linkType: hard
"camelcase@npm:^7.0.0":
version: 7.0.0
resolution: "camelcase@npm:7.0.0"
checksum: 162d59607b3b46e910af151348d5e40af579048a5d07f3c06370b096ca0d42ba4a88bd92cf4e3482645ba1ffdd6f744d8273c1b9594e493fc10883d54adf7cbe
languageName: node
linkType: hard
"caniuse-api@npm:^3.0.0":
version: 3.0.0
resolution: "caniuse-api@npm:3.0.0"