Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed May 1, 2024
1 parent 5b500b0 commit 06b7bbd
Show file tree
Hide file tree
Showing 89 changed files with 5,015 additions and 3,186 deletions.
1,452 changes: 1,185 additions & 267 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"scripts": {
"build": "tsc -b",
"clean": "shx rm -rf \"packages/*/dist\"",
"clean": "shx rm -rf \"packages/*/dist\" \"packages/*/*.tsbuildinfo\" \"packages/src/*.tsbuildinfo\" \"packages/*/test/*.tsbuildinfo\" \"packages/scripts/*.tsbuildinfo\"",
"dev": "tsc -b --watch",
"dev:docs": "npm run -w packages/docs dev",
"husky-install": "husky install",
Expand All @@ -32,7 +32,7 @@
"lint:fix": "eslint . --fix",
"lint:md": "markdownlint-cli2 \"**/*.md\"",
"lint:staged": "lint-staged",
"prepare": "run-p husky-install rebuild",
"prepare": "run-p husky-install",
"pretest:e2e": "run-s build",
"rebuild": "run-s clean build",
"test": "npm test --workspaces --if-present",
Expand Down Expand Up @@ -79,9 +79,11 @@
"snap-shot-it": "7.9.10",
"source-map-support": "0.5.21",
"ts-node": "10.9.2",
"tsd": "0.31.0",
"typescript": "5.2.2",
"unexpected": "13.2.1",
"unexpected-sinon": "11.1.0"
"unexpected-sinon": "11.1.0",
"wrap-ansi": "6.2.0"
},
"overrides": {
"debug": "4.3.4",
Expand Down
1 change: 1 addition & 0 deletions packages/midnight-smoker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
"glob": "10.3.10",
"lilconfig": "3.0.0",
"lodash": "4.17.21",
"minimatch": "9.0.3",
"mitt": "3.0.1",
"read-pkg-up": "7.0.1",
"semver": "7.5.4",
Expand Down
5 changes: 5 additions & 0 deletions packages/midnight-smoker/src/cli/cli-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {isSerializable} from '#util/util';
import {bold, cyan, yellow} from 'chalk';
import Table from 'cli-table3';
import {isError, isFunction, isObject, mergeWith} from 'lodash';
import {type WriteStream} from 'node:tty';
import stringWidth from 'string-width';
import type {MergeDeep, Primitive} from 'type-fest';

Expand Down Expand Up @@ -135,3 +136,7 @@ export function handleRejection(
}
console.error(output ?? err);
}

export function isWriteStream(value: unknown): value is WriteStream {
return value === process.stdout || value === process.stderr;
}
1 change: 1 addition & 0 deletions packages/midnight-smoker/src/cli/command/lint-cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class LintCommand extends BaseCommand<CommonOptionTypes> {
const smoker = await Smoker.create(opts);
debug('Running lint...');
await smoker.smoke();
debug('Lint complete');
}

override builder(argv: Argv<GlobalOptionTypes>): Argv<CommonOptionTypes> {
Expand Down
2 changes: 1 addition & 1 deletion packages/midnight-smoker/src/cli/command/view-cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import {bold} from 'chalk';
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import {guessPackageManager} from '#pkg-manager/pkg-manager-oracle';
import {guessPackageManager} from '#pkg-manager/pkg-manager-spec';
import {Smoker} from '#smoker';
import {inspect} from 'node:util';
import {type Writable} from 'type-fest';
Expand Down

This file was deleted.

0 comments on commit 06b7bbd

Please sign in to comment.