Skip to content

Commit a0cb382

Browse files
committed
fix main entrypoint
1 parent 2c6f28c commit a0cb382

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.changeset/popular-swans-laugh.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clack/prompts": patch
3+
"@clack/core": patch
4+
---
5+
6+
Add `main` entrypoint

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@clack/core",
33
"version": "0.0.9",
44
"type": "module",
5+
"main": "./dist/index.js",
56
"exports": {
67
".": {
78
"types": "./dist/index.d.ts",

packages/demo/prompt.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { text, select, confirm, intro, outro, cancel, spinner, isCancel } from '
22
import color from 'picocolors';
33
import { setTimeout } from 'node:timers/promises';
44

5+
console.clear();
6+
7+
await setTimeout(1000);
8+
59
intro(`${color.bgCyan(color.black(' create-app '))}`);
610

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

4852
outro('Have fun out there!');
53+
54+
await setTimeout(3000);
55+
56+
console.clear();
57+
58+
await setTimeout(3000);

packages/prompts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@clack/prompts",
33
"version": "0.0.2",
44
"type": "module",
5+
"main": "./dist/index.js",
56
"exports": {
67
".": {
78
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)