@rettangoli/fe 0.0.5 → 0.0.6

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 CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  ## Development
5
5
 
6
- Bundle the code under `example` folder using `rettangoli-fe`
6
+ Bundle the code under `example` folder using `@rettangoli/fe`
7
7
 
8
8
  ```bash
9
9
  bun run ../rettangoli-cli/cli.js fe build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rettangoli/fe",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Frontend framework for building reactive web components",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/cli/build.js CHANGED
@@ -30,7 +30,7 @@ export const writeViewFile = (view, category, component) => {
30
30
  };
31
31
 
32
32
  export const bundleFile = async (options) => {
33
- const { outfile = "./viz/static/main.js" } = options;
33
+ const { outfile = "./vt/static/main.js" } = options;
34
34
  await esbuild.build({
35
35
  entryPoints: ["./.temp/dynamicImport.js"],
36
36
  bundle: true,
@@ -47,7 +47,7 @@ export const bundleFile = async (options) => {
47
47
  const buildRettangoliFrontend = async (options) => {
48
48
  console.log("running build with options", options);
49
49
 
50
- const { dirs = ["./example"], outfile = "./viz/static/main.js", setup = "setup.js" } = options;
50
+ const { dirs = ["./example"], outfile = "./vt/static/main.js", setup = "setup.js" } = options;
51
51
 
52
52
  const allFiles = getAllFiles(dirs).filter((filePath) => {
53
53
  return (
@@ -106,7 +106,7 @@ const buildRettangoliFrontend = async (options) => {
106
106
  }
107
107
 
108
108
  output += `
109
- import { createComponent } from 'rettangoli-fe';
109
+ import { createComponent } from '@rettangoli/fe';
110
110
  import { deps, patch, h } from '../${setup}';
111
111
  const imports = ${JSON.stringify(imports, null, 2)};
112
112