@notionhive/core 0.1.0 → 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/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @notionhive/core
2
+
3
+ Shared copy utilities for [@notionhive](https://www.npmjs.com/org/notionhive) category CLIs.
4
+
5
+ You usually **do not install this directly**. Use a category package instead:
6
+
7
+ | Package | Example |
8
+ |---------|---------|
9
+ | [`@notionhive/heroes`](https://www.npmjs.com/package/@notionhive%2Fheroes) | `npx @notionhive/heroes add hero-05` |
10
+ | [`@notionhive/menus`](https://www.npmjs.com/package/@notionhive%2Fmenus) | `npx @notionhive/menus add menu-01` |
11
+ | [`@notionhive/about`](https://www.npmjs.com/package/@notionhive%2Fabout) | `npx @notionhive/about add about-01` |
12
+ | [`@notionhive/services`](https://www.npmjs.com/package/@notionhive%2Fservices) | `npx @notionhive/services add service-01` |
13
+ | [`@notionhive/testimonials`](https://www.npmjs.com/package/@notionhive%2Ftestimonials) | `npx @notionhive/testimonials add testimonial-01` |
14
+ | [`@notionhive/contacts`](https://www.npmjs.com/package/@notionhive%2Fcontacts) | `npx @notionhive/contacts add contact-01` |
15
+ | [`@notionhive/footers`](https://www.npmjs.com/package/@notionhive%2Ffooters) | `npx @notionhive/footers add footer-07` |
16
+ | [`@notionhive/ctas`](https://www.npmjs.com/package/@notionhive%2Fctas) | `npx @notionhive/ctas add cta-03` |
17
+
18
+ ## What it does
19
+
20
+ - Resolves component templates from the published category package
21
+ - Copies editable source into the target project
22
+ - Rewrites imports to `@/components/_shared/...`
23
+ - Copies shared atoms, hooks, molecules, and public assets as needed
24
+
25
+ ## Requirements (target project)
26
+
27
+ - Node.js 18+
28
+ - Next.js 16+
29
+ - Tailwind CSS v4
30
+ - `prop-types`
31
+
32
+ ## License
33
+
34
+ UNLICENSED — internal Notionhive use unless otherwise specified.
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const { addComponent } = require("./add-component");
2
- const { copyDirectory } = require("./copy");
2
+ const { copyDirectory, pathExists } = require("./copy");
3
3
  const { copySharedTree } = require("./copy-shared");
4
4
  const { createCategoryCli } = require("./category-cli");
5
5
  const { findLibraryRoot, resolvePaths } = require("./paths");
@@ -15,4 +15,5 @@ module.exports = {
15
15
  resolvePaths,
16
16
  rewriteImports,
17
17
  parseSharedImports,
18
+ pathExists,
18
19
  };
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@notionhive/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Shared utilities for @notionhive category CLIs (copy editable source into projects).",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./lib/index.js",
7
7
  "files": [
8
- "lib"
8
+ "lib",
9
+ "README.md"
9
10
  ],
10
11
  "engines": {
11
12
  "node": ">=18"