Skip to content

Commit cc27f83

Browse files
committed
feat(create): release create-pattern-lab so "npm create pattern-lab" is possible
1 parent 89bdbb6 commit cc27f83

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

packages/create/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Create Pattern Lab
2+
3+
To get started, simply run:
4+
5+
```bash
6+
npm create pattern-lab
7+
```
8+
9+
Then follow the prompts.
10+
11+
This is the same as using the main Pattern Lab CLI's `init` command:
12+
13+
```bash
14+
npm i -g @pattern-lab/cli
15+
pattern-lab init
16+
```

packages/create/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#! /usr/bin/env node
2-
console.log(
3-
'This is deprecated; please use "npm create pattern-lab" now, which is the `create-pattern-lab` package. Have a nice day!'
4-
);
5-
process.exit(1);
62
const init = require('@pattern-lab/cli/bin/cli-actions/init');
73

84
init({});

packages/create/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@pattern-lab/create",
2+
"name": "create-pattern-lab",
33
"version": "1.0.3",
44
"description": "",
55
"bin": "index.js",

0 commit comments

Comments
 (0)