Skip to content

Commit

Permalink
fix main entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Feb 13, 2023
1 parent 2c6f28c commit a0cb382
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/popular-swans-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@clack/prompts": patch
"@clack/core": patch
---

Add `main` entrypoint
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@clack/core",
"version": "0.0.9",
"type": "module",
"main": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions packages/demo/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { text, select, confirm, intro, outro, cancel, spinner, isCancel } from '
import color from 'picocolors';
import { setTimeout } from 'node:timers/promises';

console.clear();

await setTimeout(1000);

intro(`${color.bgCyan(color.black(' create-app '))}`);

const a = await text({
Expand Down Expand Up @@ -46,3 +50,9 @@ await setTimeout(5000);
s.stop('Installed via npm');

outro('Have fun out there!');

await setTimeout(3000);

console.clear();

await setTimeout(3000);
1 change: 1 addition & 0 deletions packages/prompts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@clack/prompts",
"version": "0.0.2",
"type": "module",
"main": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit a0cb382

Please sign in to comment.