create-shallot 0.3.5 → 0.3.9

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.
Files changed (2) hide show
  1. package/index.ts +10 -3
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -94,13 +94,20 @@ export default defineConfig({
94
94
  );
95
95
 
96
96
  writeFileSync(
97
- join(dir, "src/main.ts"),
98
- `import { run, OrbitPlugin, type Config } from "@dylanebert/shallot";
97
+ join(dir, "src/lib.ts"),
98
+ `import { OrbitPlugin, type Config } from "@dylanebert/shallot";
99
99
 
100
- const config: Config = {
100
+ export const config: Config = {
101
101
  plugins: [OrbitPlugin],
102
102
  scene: "/scenes/demo.scene",
103
103
  };
104
+ `,
105
+ );
106
+
107
+ writeFileSync(
108
+ join(dir, "src/main.ts"),
109
+ `import { run } from "@dylanebert/shallot";
110
+ import { config } from "./lib";
104
111
 
105
112
  const state = await run(config);
106
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-shallot",
3
- "version": "0.3.5",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "bin": "./index.ts",
6
6
  "files": ["index.ts"],