primo-cli 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ const program = new Command();
12
12
  program
13
13
  .name('primo')
14
14
  .description('Build sites visually, edit them anywhere')
15
- .version('0.1.1');
15
+ .version('0.1.2');
16
16
  program
17
17
  .command('new [name]')
18
18
  .description('Create a new site and start local CMS')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primo-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Local development CLI for Primo",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,7 +9,8 @@
9
9
  "scripts": {
10
10
  "build": "tsc",
11
11
  "dev": "tsc --watch",
12
- "prepublishOnly": "npm run build"
12
+ "prepublishOnly": "npm run build",
13
+ "postinstall": "node scripts/postinstall.js"
13
14
  },
14
15
  "repository": {
15
16
  "type": "git",
@@ -45,7 +46,8 @@
45
46
  "typescript": "^5.3.3"
46
47
  },
47
48
  "files": [
48
- "dist"
49
+ "dist",
50
+ "scripts"
49
51
  ],
50
52
  "engines": {
51
53
  "node": ">=18.0.0"
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+
3
+ const message = `
4
+ ┌─────────────────────────────────────────┐
5
+ │ │
6
+ │ Primo CLI installed successfully │
7
+ │ │
8
+ │ Get started: │
9
+ │ $ primo new my-site │
10
+ │ │
11
+ │ Docs: https://primocms.org/docs │
12
+ │ │
13
+ └─────────────────────────────────────────┘
14
+ `
15
+
16
+ console.log(message)