Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
Revert using Babel. (#165)
Browse files Browse the repository at this point in the history
* Target es2015 in tsconfig.base.json.

* Revert to older @types/node 8.

* Get rid of babel.

* Get rid of babel.
  • Loading branch information
Kimmo Sääskilahti committed Aug 13, 2019
1 parent e9353c2 commit 4a5f355
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 1,160 deletions.
15 changes: 0 additions & 15 deletions babel.config.js

This file was deleted.

1,157 changes: 37 additions & 1,120 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 5 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"clean": "npm prune && del-cli ./packages/*/dist ./packages/*/tsconfig.tsbuildinfo",
"build": "npm run build:types:clean && npm run check:types:tests && npm run build:types && npm run build:js",
"build:types": "tsc --build tsconfig.build.json",
"build:types:clean": "tsc --build tsconfig.build.json --clean",
"check:types:tests": "tsc --build tsconfig.test.json && tsc --build tsconfig.test.json --clean",
"build:js": "lerna exec --parallel \"babel src --ignore 'src/**/__tests__' --out-dir dist --source-maps --extensions .ts,.tsx --config-file ../../babel.config.js --no-comments --verbose\"",
"compile:clean": "tsc --build tsconfig.build.json --clean",
"compile:tests": "tsc --build tsconfig.test.json && tsc --build tsconfig.test.json --clean",
"compile": "tsc --build tsconfig.build.json",
"watch": "tsc --build tsconfig.build.json --watch",
"release": "npm run clean && npm install && lerna publish from-package --exact --force-publish=unmock-core --include-merged-tags",
"postinstall": "lerna run prepare && npm run lint-ts && npm run build",
"postinstall": "lerna run prepare && npm run lint-ts && npm run compile:tests && npm run compile",
"format-check": "prettier-check '**/*.{js,ts}'",
"format": "prettier '**/*.{js,ts}' --write",
"lint": "npm run lint-ts",
Expand All @@ -36,14 +36,6 @@
]
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-numeric-separator": "^7.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.3.3",
"@types/app-root-path": "^1.2.4",
"@types/content-type": "^1.1.3",
"@types/debug": "^4.1.4",
Expand All @@ -55,8 +47,7 @@
"@types/lodash": "^4.14.136",
"@types/mitm": "^1.3.2",
"@types/mkdirp": "^0.5.2",
"@types/node": "^12.6.8",
"@types/readable-stream": "^2.3.2",
"@types/node": "^8.10.51",
"@types/shimmer": "^1.0.1",
"@types/uuid": "^3.4.5",
"@types/xregexp": "^3.0.30",
Expand Down
1 change: 0 additions & 1 deletion packages/unmock-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"url": "https://github.com/unmock/unmock-js/issues"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.5.5",
"ajv": "^6.10.0",
"axios": "^0.18.0",
"boxen": "3.2.0",
Expand Down
1 change: 0 additions & 1 deletion packages/unmock-jsdom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"url": "https://github.com/unmock/unmock-js/issues"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.5.5",
"js-yaml": "^3.13.1",
"unmock-core": "file:../unmock-core"
}
Expand Down
1 change: 0 additions & 1 deletion packages/unmock-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"url": "https://github.com/unmock/unmock-js/issues"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.5.5",
"app-root-path": "^2.2.1",
"debug": "^4.1.1",
"expect": "^24.7.1",
Expand Down
4 changes: 3 additions & 1 deletion packages/unmock-node/src/serialize/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import debug from "debug";
import * as http from "http";
import * as readable from "readable-stream";
// @types/readable-stream not compatible with @types/node@8?
// @ts-ignore
const readable = require("readable-stream"); // tslint:disable-line:no-var-requires
import { IIncomingHeaders, ISerializedRequest } from "unmock-core";
import url from "url";

Expand Down
1 change: 0 additions & 1 deletion packages/unmock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"url": "https://github.com/unmock/unmock-js/issues"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.5.5",
"unmock-cli": "file:../unmock-cli"
}
}
11 changes: 7 additions & 4 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"composite": true,
"emitDeclarationOnly": true,
"target": "esnext",
"emitDeclarationOnly": false,
"noEmit": false,
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
Expand All @@ -20,6 +21,8 @@
"baseUrl": ".",
"paths": {
"*" : ["types/*"]
}
}
},
"lib": ["dom", "es2015"]
},
"exclude": ["node_modules"]
}
3 changes: 2 additions & 1 deletion tsconfig.test.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"compilerOptions": {
"emitDeclarationOnly": false,
"noEmit": true
}
},
"exclude": ["node_modules"]
}
3 changes: 2 additions & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
{ "path": "./packages/unmock-core/src/__tests__" },
{ "path": "./packages/unmock-jsdom/src/__tests__" },
{ "path": "./packages/unmock-node/src/__tests__" }
]
],
"exclude": ["node_modules"]
}

0 comments on commit 4a5f355

Please sign in to comment.