@powerhousedao/codegen 0.2.0 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.2.0 (2024-10-08)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - **codegen:** added support for local state on editor codegen ([14c84bde](https://github.com/powerhouse-inc/powerhouse/commit/14c84bde))
7
+
8
+ - **codegen:** fixed editor folder name ([ae0e6e2c](https://github.com/powerhouse-inc/powerhouse/commit/ae0e6e2c))
9
+
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - acaldas @acaldas
14
+ -
1
15
  ## 0.1.0 (2024-09-26)
2
16
 
3
17
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- to: "<%= rootDir %>/<%= name %>/<%= name %>.stories.tsx"
2
+ to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/<%= <%= h.changeCase.param(name) %> %>.stories.tsx"
3
3
  unless_exists: true
4
4
  ---
5
5
  import Editor from './editor';
@@ -97,7 +97,9 @@ function createProject(projectName, documentModelsDir, editorsDir) {
97
97
  runCmd('git init');
98
98
  try {
99
99
  fs_1.default.mkdirSync(path_1.default.join(appPath, documentModelsDir));
100
+ fs_1.default.mkdirSync(path_1.default.join(appPath, documentModelsDir, 'index.ts'));
100
101
  fs_1.default.mkdirSync(path_1.default.join(appPath, editorsDir));
102
+ fs_1.default.mkdirSync(path_1.default.join(appPath, editorsDir, 'index.ts'));
101
103
  }
102
104
  catch (error) {
103
105
  if (!error.message.includes('EEXIST')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/codegen",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": false,
6
6
  "main": "dist/index.js",