Skip to content

Commit

Permalink
chore: update dependancies & format code (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpreston321 authored Aug 26, 2023
2 parents 24a3f4a + 3ca1837 commit a53da5c
Show file tree
Hide file tree
Showing 7 changed files with 1,170 additions and 815 deletions.
2 changes: 2 additions & 0 deletions .changeset/small-pens-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 1 addition & 1 deletion build.preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { definePreset } from 'unbuild';
export default definePreset({
clean: true,
declaration: true,
sourcemap: true,
rollup: {
emitCJS: true,
inlineDependencies: true,
esbuild: {
minify: true,
sourceMap: true,
},
},
});
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,24 @@
"build:prompts": "pnpm --filter @clack/prompts run build",
"start": "pnpm --filter @example/basic run start",
"dev": "pnpm --filter @example/changesets run start",
"format": "pnpm run format:code",
"format": "pnpm run /^format:.*/",
"format:code": "prettier -w . --cache",
"format:imports": "organize-imports-cli ./packages/*/tsconfig.json",
"type-check": "tsc",
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
"ci:publish": "changeset publish",
"ci:format": "pnpm run format:imports && pnpm run format:code"
"ci:format": "pnpm run format"
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@types/node": "18",
"merge2": "^1.4.1",
"@changesets/cli": "^2.26.2",
"@types/node": "^18.16.0",
"organize-imports-cli": "^0.10.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"unbuild": "^1.1.2"
"prettier": "^3.0.2",
"typescript": "^5.2.2",
"unbuild": "^2.0.0"
},
"packageManager": "pnpm@7.6.0",
"packageManager": "pnpm@8.6.12",
"volta": {
"node": "16.19.0"
"node": "18.16.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"url": "https://twitter.com/n_moore"
},
"license": "MIT",
"packageManager": "pnpm@7.6.0",
"packageManager": "pnpm@8.6.12",
"scripts": {
"build": "unbuild",
"prepack": "pnpm build"
Expand Down
4 changes: 2 additions & 2 deletions packages/prompts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"stdin",
"ui"
],
"packageManager": "pnpm@7.6.0",
"packageManager": "pnpm@8.6.12",
"scripts": {
"build": "unbuild",
"prepack": "pnpm build"
},
"dependencies": {
"@clack/core": "^0.3.3",
"@clack/core": "workspace:*",
"picocolors": "^1.0.0",
"sisteransi": "^1.0.5"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/prompts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SelectKeyPrompt,
SelectPrompt,
State,
TextPrompt,
TextPrompt
} from '@clack/core';
import isUnicodeSupported from 'is-unicode-supported';
import color from 'picocolors';
Expand Down Expand Up @@ -632,7 +632,7 @@ export const spinner = () => {
const delay = unicode ? 80 : 120;

let unblock: () => void;
let loop: NodeJS.Timer;
let loop: NodeJS.Timeout;
let isSpinnerActive: boolean = false;
let _message: string = '';

Expand Down
Loading

0 comments on commit a53da5c

Please sign in to comment.