Skip to content

Commit 14de6db

Browse files
committed
chore: update package.json or babel config
1 parent 7d33c7c commit 14de6db

8 files changed

+3960
-2154
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"presets": ["env"],
2+
"presets": ["@babel/preset-env"],
33
"plugins": [
44
"add-module-exports",
55
"transform-es2015-modules-umd"

examples/PacktDataStructuresAlgorithms.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/PacktDataStructuresAlgorithms.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/chapter14/02-MinCoinChangeDP.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ const { minCoinChange } = PacktDataStructuresAlgorithms;
22

33
console.log(minCoinChange([1, 5, 10], 15)); // [5, 10]
44
console.log(minCoinChange([1, 3, 4], 6)); // [3, 3]
5-

examples/chapter14/03-MinCoinChangeGreedy.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ const { minCoinChangeGreedy } = PacktDataStructuresAlgorithms;
22

33
console.log(minCoinChangeGreedy([1, 5, 10], 15)); // [5, 10]
44
console.log(minCoinChangeGreedy([1, 3, 4], 6)); // [4, 1, 1]
5-

package-lock.json

Lines changed: 3952 additions & 2147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"all": true
5656
},
5757
"devDependencies": {
58+
"@babel/cli": "^7.19.3",
59+
"@babel/core": "^7.19.6",
60+
"@babel/preset-env": "^7.19.4",
5861
"@types/chai": "^4.1.2",
5962
"@types/mocha": "^5.0.0",
6063
"babel-cli": "^6.26.0",
@@ -76,6 +79,7 @@
7679
"ts-node": "8.0.3",
7780
"tslint": "5.14.0",
7881
"typescript": "3.3.3333",
82+
"uglifyjs-webpack-plugin": "^2.2.0",
7983
"webpack": "^4.29.6",
8084
"webpack-cli": "3.3.0",
8185
"yargs": "^16.1.0"

webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// @ts-check
22
/* eslint-disable */
33
const webpack = require('webpack');
4-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');;
4+
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
55
const path = require('path');
66
const env = require('yargs').argv.env;
7-
87
let libraryName = 'PacktDataStructuresAlgorithms';
98

109
let plugins = [],

0 commit comments

Comments
 (0)