Skip to content

Commit

Permalink
chore: debug ava
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjlewis committed Feb 2, 2022
1 parent 23e31b9 commit ebef2eb
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 84 deletions.
23 changes: 10 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tsmodule/tsmodule",
"type": "module",
"version": "9.0.6",
"version": "9.3.1",
"repository": "tsmodule/tsmodule",
"description": "TypeScript Module loader and compiler",
"license": "MIT",
Expand Down Expand Up @@ -38,27 +38,24 @@
"test": "ava --no-worker-threads"
},
"dependencies": {
"await-shell": "^2.7.0",
"@types/cross-spawn": "^6.0.2",
"@types/node": "17.0.8",
"@types/react": "17.0.38",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"ava": "^4.0.1",
"await-shell": "^4.0.2",
"chalk": "^5.0.0",
"commander": "^8.3.0",
"create-debug-logger": "^1.10.1",
"cross-spawn": "^7.0.3",
"esbuild": "^0.14.0",
"eslint": "^8.6.0",
"fast-glob": "^3.2.10",
"ora": "^6.0.1",
"path": "^0.12.7",
"react": "^17.0.2",
"rollup": "^2.63.0",
"rollup-plugin-preserve-shebang": "^1.0.1",
"typescript": "^4.5.5"
},
"devDependencies": {
"@types/node": "17.0.8",
"@types/react": "17.0.38",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"ava": "^4.0.1",
"eslint": "^8.6.0"
},
"keywords": [
"esm",
"loader",
Expand Down
9 changes: 1 addition & 8 deletions src/commands/create/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ export const create = async (name: string) => {
*/
process.chdir(name);

const dependencies = [
"@tsmodule/tsmodule",
"typescript",
"ava",
"eslint",
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
];
const dependencies = ["@tsmodule/tsmodule"];

// @ts-ignore - Need to add initializeShell() to await-shell.
globalThis.SHELL_OPTIONS = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/execute/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { URL } from "url";
import { spawn } from "child_process";
import { spawn } from "cross-spawn";

export const execute = () => {
/**
Expand Down
79 changes: 17 additions & 62 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,28 @@
resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.12.tgz#6b2c510a7ad7039e98e7b8d3d6598f4359e5c080"
integrity sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw==

"@types/cross-spawn@^6.0.2":
version "6.0.2"
resolved "https://registry.yarnpkg.com/@types/cross-spawn/-/cross-spawn-6.0.2.tgz#168309de311cd30a2b8ae720de6475c2fbf33ac7"
integrity sha512-KuwNhp3eza+Rhu8IFI5HUXRP0LIhqH5cAjubUvGXXthh4YYBuP2ntwEX+Cz8GJoZUHlKo247wPWOfA9LYEq4cw==
dependencies:
"@types/node" "*"

"@types/json-schema@^7.0.9":
version "7.0.9"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d"
integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==

"@types/node@*", "@types/node@>=10.0.0":
version "17.0.14"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.14.tgz#33b9b94f789a8fedd30a68efdbca4dbb06b61f20"
integrity sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==

"@types/node@17.0.8":
version "17.0.8"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.8.tgz#50d680c8a8a78fe30abe6906453b21ad8ab0ad7b"
integrity sha512-YofkM6fGv4gDJq78g4j0mMuGMkZVxZDgtU0JRdx6FgiJDG+0fY0GKVolOV8WqVmEhLCXkQRjwDdKyPxJp/uucg==

"@types/node@>=10.0.0", "@types/node@^17.0.14":
version "17.0.14"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.14.tgz#33b9b94f789a8fedd30a68efdbca4dbb06b61f20"
integrity sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==

"@types/prop-types@*":
version "15.7.4"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11"
Expand Down Expand Up @@ -363,13 +370,12 @@ ava@^4.0.1:
write-file-atomic "^3.0.3"
yargs "^17.3.1"

await-shell@^2.7.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/await-shell/-/await-shell-2.7.0.tgz#c7b4ae438428abad7076088f33c54cafce611df9"
integrity sha512-6pcw9qmTRRLR0VXMmiPiFylfcHKpUCO/6yy6g2isY+8jwKdGbkUam6Wdpc4f4ZOoPAOT1ZwinEPuEEbJyC64bg==
await-shell@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/await-shell/-/await-shell-4.0.2.tgz#bc29f0a477af630b0ce9bb6fe34317d4c52cb4b3"
integrity sha512-T+9HXCbAfjX4BSlKjdrOwocMNyfgiAjzY1O+GBvEDFzQ+jqRdA0g8gZXt3CspSuX/kSYnIOWN88wKbSUDGswoQ==
dependencies:
"@types/node" "^17.0.14"
chalk "^5.0.0"
"@types/cross-spawn" "^6.0.2"
cross-spawn "^7.0.3"

balanced-match@^1.0.0:
Expand Down Expand Up @@ -1260,11 +1266,6 @@ inherits@2, inherits@^2.0.3, inherits@^2.0.4:
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==

inherits@2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=

irregular-plurals@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/irregular-plurals/-/irregular-plurals-3.3.0.tgz#67d0715d4361a60d9fd9ee80af3881c631a31ee2"
Expand Down Expand Up @@ -1436,13 +1437,6 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"

magic-string@^0.25.7:
version "0.25.7"
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==
dependencies:
sourcemap-codec "^1.4.4"

map-age-cleaner@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a"
Expand Down Expand Up @@ -1681,14 +1675,6 @@ path-type@^4.0.0:
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==

path@^0.12.7:
version "0.12.7"
resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f"
integrity sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=
dependencies:
process "^0.11.1"
util "^0.10.3"

picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
Expand Down Expand Up @@ -1721,11 +1707,6 @@ pretty-ms@^7.0.1:
dependencies:
parse-ms "^2.1.0"

process@^0.11.1:
version "0.11.10"
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=

progress@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
Expand Down Expand Up @@ -1812,20 +1793,6 @@ rimraf@^3.0.2:
dependencies:
glob "^7.1.3"

rollup-plugin-preserve-shebang@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/rollup-plugin-preserve-shebang/-/rollup-plugin-preserve-shebang-1.0.1.tgz#17109cdb4ed12c3cac9379b802182427cdbee5a1"
integrity sha512-gk7ExGBqvUinhgrvldKHkAKXXwRkWMXMZymNkrtn50uBgHITlhRjhnKmbNGwAIc4Bzgl3yLv7/8Fhi/XeHhFKg==
dependencies:
magic-string "^0.25.7"

rollup@^2.63.0:
version "2.63.0"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.63.0.tgz#fe2f7fec2133f3fab9e022b9ac245628d817c6bb"
integrity sha512-nps0idjmD+NXl6OREfyYXMn/dar3WGcyKn+KBzPdaLecub3x/LrId0wUcthcr8oZUAcZAR8NKcfGGFlNgGL1kQ==
optionalDependencies:
fsevents "~2.3.2"

run-parallel@^1.1.9:
version "1.2.0"
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
Expand Down Expand Up @@ -1913,11 +1880,6 @@ socket.io@^4.4.0:
socket.io-adapter "~2.3.3"
socket.io-parser "~4.0.4"

sourcemap-codec@^1.4.4:
version "1.4.8"
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==

sprintf-js@~1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
Expand Down Expand Up @@ -2067,13 +2029,6 @@ util-deprecate@^1.0.1:
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=

util@^0.10.3:
version "0.10.4"
resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901"
integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==
dependencies:
inherits "2.0.3"

v8-compile-cache@^2.0.3:
version "2.3.0"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
Expand Down

0 comments on commit ebef2eb

Please sign in to comment.