notionsoft-ui 1.0.12 → 1.0.13
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/cli/index.cjs +3 -3
- package/package.json +1 -1
package/cli/index.cjs
CHANGED
|
@@ -10,10 +10,10 @@ const { execSync } = require("child_process");
|
|
|
10
10
|
Helper: get template path
|
|
11
11
|
------------------------------- */
|
|
12
12
|
function getTemplateFile(component) {
|
|
13
|
-
// Library template: src/
|
|
13
|
+
// Library template: src/notion-ui/button/button.tsx
|
|
14
14
|
return path.join(
|
|
15
15
|
__dirname,
|
|
16
|
-
"../src/
|
|
16
|
+
"../src/notion-ui",
|
|
17
17
|
component,
|
|
18
18
|
component + ".tsx"
|
|
19
19
|
);
|
|
@@ -153,7 +153,7 @@ program
|
|
|
153
153
|
.command("list")
|
|
154
154
|
.description("List available components")
|
|
155
155
|
.action(() => {
|
|
156
|
-
const templatesDir = path.join(__dirname, "../src/
|
|
156
|
+
const templatesDir = path.join(__dirname, "../src/notion-ui");
|
|
157
157
|
const components = fs.readdirSync(templatesDir).filter((folder) => {
|
|
158
158
|
const file = path.join(templatesDir, folder, folder + ".tsx");
|
|
159
159
|
return fs.existsSync(file);
|