Skip to content

Commit

Permalink
remove babel packages - no longer used
Browse files Browse the repository at this point in the history
babel.config.js file is still kept though in case it's needed in future.
  • Loading branch information
siddharthvp committed May 10, 2021
1 parent aa43ec5 commit 806a137
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 4,433 deletions.
7 changes: 6 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// Install the npm deps @babel/cli @babel/core
// and all the @babel packages mentioned in the config below
// Generate build via
// babel . --extensions ".ts" --out-dir .

module.exports = {
ignore: [
"node_modules/**/*.ts",
"**/*.d.ts"
],
"presets": ["@babel/preset-typescript"],
"presets": ["@babel/preset-env", "@babel/preset-typescript"],
"plugins": [
[
"@babel/plugin-transform-modules-commonjs",
Expand Down
3 changes: 1 addition & 2 deletions botbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,4 @@ export const TextExtractor = require('./TextExtractor')(bot);
export {mysql, db, enwikidb, toolsdb} from './db';

// exported like this for compatibility; better import utils directly
import * as utils from './utils';
export {utils};
export * as utils from './utils';
Loading

0 comments on commit 806a137

Please sign in to comment.