@mcpher/gas-fakes 1.2.6 → 1.2.7
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/gas-fakes.js +3 -2
- package/package.json +1 -1
- package/src/support/syncit.js +1 -1
- package/gasfakes.json +0 -8
package/gas-fakes.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* v0.0.1
|
|
6
6
|
*/
|
|
7
7
|
import fs from "fs";
|
|
8
|
+
import path from "path";
|
|
8
9
|
import { Command } from "commander";
|
|
9
10
|
import dotenv from 'dotenv'
|
|
10
11
|
|
|
@@ -63,10 +64,10 @@ program
|
|
|
63
64
|
process.exit();
|
|
64
65
|
}
|
|
65
66
|
if (gfsettings) {
|
|
66
|
-
obj.gfSettings= gfsettings
|
|
67
|
+
obj.gfSettings = path.resolve(gfsettings);
|
|
67
68
|
}
|
|
68
69
|
if (env) {
|
|
69
|
-
dotenv.config({ path: env })
|
|
70
|
+
dotenv.config({ path: path.resolve(env) });
|
|
70
71
|
}
|
|
71
72
|
if (filename) {
|
|
72
73
|
obj.filename = filename;
|
package/package.json
CHANGED
package/src/support/syncit.js
CHANGED
|
@@ -22,7 +22,7 @@ import { callSync } from "./workersync/synchronizer.js";
|
|
|
22
22
|
|
|
23
23
|
const manifestDefaultPath = "./appsscript.json";
|
|
24
24
|
const claspDefaultPath = "./.clasp.json";
|
|
25
|
-
const settingsDefaultPath = "./gasfakes.json"
|
|
25
|
+
const settingsDefaultPath = process.env.GF_SETTINGS_PATH || "./gasfakes.json";
|
|
26
26
|
const propertiesDefaultPath = "/tmp/gas-fakes/properties";
|
|
27
27
|
const cacheDefaultPath = "/tmp/gas-fakes/cache";
|
|
28
28
|
// note that functions like Sheets.newGridRange() etc create objects that contain get and set functions
|