Skip to content

Commit

Permalink
chore: Bumps all other js deps
Browse files Browse the repository at this point in the history
  • Loading branch information
NeedleInAJayStack committed May 25, 2024
1 parent dc57a2a commit 94c5308
Show file tree
Hide file tree
Showing 4 changed files with 2,485 additions and 2,164 deletions.
8 changes: 3 additions & 5 deletions .config/webpack/utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import fs from 'fs';
import path from 'path';
import util from 'util';
import glob from 'glob';
import { glob } from 'glob';
import { SOURCE_DIR } from './constants';

const globAsync = util.promisify(glob);

export function getPackageJson() {
return require(path.resolve(process.cwd(), 'package.json'));
}
Expand All @@ -23,11 +21,11 @@ export function hasReadme() {
// Support bundling nested plugins by finding all plugin.json files in src directory
// then checking for a sibling module.[jt]sx? file.
export async function getEntries(): Promise<Record<string, string>> {
const pluginsJson = await globAsync('**/src/**/plugin.json', { absolute: true });
const pluginsJson = await glob('**/src/**/plugin.json', { absolute: true });

const plugins = await Promise.all(pluginsJson.map((pluginJson) => {
const folder = path.dirname(pluginJson);
return globAsync(`${folder}/module.{ts,tsx,js,jsx}`, { absolute: true });
return glob(`${folder}/module.{ts,tsx,js,jsx}`, { absolute: true });
})
);

Expand Down
2 changes: 1 addition & 1 deletion .config/webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const config = async (env): Promise<Configuration> => ({
loader: 'swc-loader',
options: {
jsc: {
baseUrl: './src',
baseUrl: path.resolve(__dirname) + '/src',
target: 'es2015',
loose: false,
parser: {
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,58 +27,58 @@
"@babel/core": "^7.16.7",
"@grafana/e2e": "^11.0.0",
"@grafana/e2e-selectors": "^11.0.0",
"@grafana/eslint-config": "^5.1.0",
"@grafana/eslint-config": "^7.0.0",
"@grafana/tsconfig": "^1.2.0-rc1",
"@swc/core": "^1.2.144",
"@swc/helpers": "^0.5.0",
"@swc/jest": "^0.2.23",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.4",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^15.0.0",
"@types/glob": "^8.0.0",
"@types/jest": "^29.2.2",
"@types/lodash": "^4.14.188",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1",
"eslint": "8.26.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jsdoc": "^39.6.2",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"copy-webpack-plugin": "^12.0.0",
"css-loader": "^7.0.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jsdoc": "^48.0.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-webpack-plugin": "^3.1.1",
"fork-ts-checker-webpack-plugin": "^7.2.0",
"glob": "^8.0.3",
"husky": "^8.0.3",
"identity-obj-proxy": "3.0.0",
"eslint-webpack-plugin": "^4.0.0",
"fork-ts-checker-webpack-plugin": "^9.0.0",
"glob": "^10.0.0",
"husky": "^9.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"lint-staged": "^13.2.0",
"prettier": "^2.5.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"replace-in-file-webpack-plugin": "^1.0.6",
"sass": "1.56.1",
"sass-loader": "13.2.0",
"style-loader": "3.3.1",
"sass": "^1.56.1",
"sass-loader": "^14.0.0",
"style-loader": "^4.0.0",
"swc-loader": "^0.2.3",
"ts-node": "^10.5.0",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.4.0",
"typescript": "^5.0.0",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2",
"webpack-cli": "^5.0.0",
"webpack-livereload-plugin": "^3.0.2"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"@emotion/css": "^11.1.3",
"@grafana/data": "^11.0.0",
"@grafana/runtime": "^11.0.0",
"@grafana/sign-plugin": "^3.0.0",
"@grafana/ui": "^11.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.0.0",
"react-dom": "^18.0.0"
}
}
Loading

0 comments on commit 94c5308

Please sign in to comment.