Skip to content

Commit

Permalink
chore: update node version to v20
Browse files Browse the repository at this point in the history
- update webpack to v5
  • Loading branch information
danguilherme committed Apr 30, 2024
1 parent bb3df96 commit 64f021e
Show file tree
Hide file tree
Showing 5 changed files with 597 additions and 666 deletions.
1 change: 0 additions & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ last 5 Chrome major versions
last 5 Firefox major versions
last 5 Edge major versions
last 3 Safari major versions
maintained node versions
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.20.1
v20.10.0
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "yarn run build:types && yarn run build:javascript",
"build:javascript": "webpack",
"build:types": "tsc --emitDeclarationOnly",
"docs": "typedoc --mode file --out docs/api/ src/",
"docs": "typedoc --out docs/api/ src/**/*",
"lint": "tslint -c tslint.json -p tsconfig.json",
"test": "jest",
"test:report": "yarn test --coverage --verbose",
Expand All @@ -35,6 +35,9 @@
"url": "https://github.com/danguilherme/uno/issues"
},
"license": "MIT",
"files": [
"dist"
],
"dependencies": {
"events": "^3.1.0",
"shuffle": "^0.2.2"
Expand All @@ -61,15 +64,16 @@
"babel-loader": "^8.0.6",
"chai": "^4.2.0",
"jest": "^29.7.0",
"node-polyfill-webpack-plugin": "^3.0.0",
"semantic-release": "^17.0.0",
"ts-jest": "^29.1.2",
"tslint": "^6.1.3",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-merge": "^4.2.2",
"webpack-node-externals": "^1.7.2"
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-merge": "^5.10.0",
"webpack-node-externals": "^3.0.0"
},
"commitlint": {
"extends": [
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

const path = require('path');
const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const { merge: webpackMerge } = require('webpack-merge');
const nodeExternals = require('webpack-node-externals');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

const baseConfig = {
devtool: 'source-map',
Expand Down Expand Up @@ -42,6 +43,7 @@ const nodeTarget = {
new webpack.DefinePlugin({
'process.env.PLATFORM': JSON.stringify('node'),
}),
new NodePolyfillPlugin(),
],
};
const webTarget = {
Expand Down
Loading

0 comments on commit 64f021e

Please sign in to comment.