pinokiod 1.3.48 → 1.3.49

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/package.json +1 -1
  2. package/server/index.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.48",
3
+ "version": "1.3.49",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -230,6 +230,14 @@ class Server {
230
230
  }
231
231
  console.log("M", mem)
232
232
 
233
+ let current = this.kernel.path("api", name, "ENVIRONMENT")
234
+ // if environment.json doesn't exist,
235
+ let exists = await this.exists(current)
236
+ if (!exists) {
237
+ let content = await Environment.APP_ENV()
238
+ await fs.promises.writeFile(current, content)
239
+ }
240
+
233
241
 
234
242
  //res.render("browser", {
235
243
  res.render("browser-experimental", {