@a-company/atelier 0.27.0 → 0.27.1
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/dist/cli.cjs +7 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -3975,8 +3975,9 @@ function studioCommand(program2) {
|
|
|
3975
3975
|
const cliPackageDir = (0, import_node_path9.resolve)((0, import_node_path9.dirname)(new URL(import_meta.url).pathname), "..");
|
|
3976
3976
|
const packagesDir = (0, import_node_path9.resolve)(cliPackageDir, "..");
|
|
3977
3977
|
const tmpId = (0, import_node_crypto.randomBytes)(4).toString("hex");
|
|
3978
|
-
const
|
|
3979
|
-
(0, import_node_fs9.mkdirSync)(
|
|
3978
|
+
const tmpDirRaw = (0, import_node_path9.join)((0, import_node_os.tmpdir)(), `atelier-studio-${tmpId}`);
|
|
3979
|
+
(0, import_node_fs9.mkdirSync)(tmpDirRaw, { recursive: true });
|
|
3980
|
+
const tmpDir = (0, import_node_fs9.realpathSync)(tmpDirRaw);
|
|
3980
3981
|
(0, import_node_fs9.writeFileSync)((0, import_node_path9.join)(tmpDir, "index.html"), getInlineHTML());
|
|
3981
3982
|
(0, import_node_fs9.writeFileSync)((0, import_node_path9.join)(tmpDir, "main.ts"), getInlineApp(file ?? null));
|
|
3982
3983
|
console.log(`Starting Atelier Studio...`);
|
|
@@ -3994,7 +3995,10 @@ function studioCommand(program2) {
|
|
|
3994
3995
|
root: tmpDir,
|
|
3995
3996
|
server: {
|
|
3996
3997
|
port,
|
|
3997
|
-
strictPort: false
|
|
3998
|
+
strictPort: false,
|
|
3999
|
+
fs: {
|
|
4000
|
+
allow: [tmpDir, packagesDir, cwd]
|
|
4001
|
+
}
|
|
3998
4002
|
},
|
|
3999
4003
|
resolve: {
|
|
4000
4004
|
alias: {
|