@tywalk/pcf-helper 1.5.4 → 1.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Command line helper for building and publishing PCF controls to Dataverse.",
5
5
  "main": "dist/index.js",
6
6
  "types": "./types/",
@@ -71,10 +71,10 @@ function loadConfig(config) {
71
71
  remoteStylesheetToIntercept: remoteStylesheetToIntercept,
72
72
  localCssPath: process.env.LOCAL_CSS_PATH ||
73
73
  fileConfig.localCssPath ||
74
- path_1.default.join(__dirname, 'dist', 'local-control-styles.css'),
74
+ path_1.default.join(process.cwd(), 'dist', 'local-control-styles.css'),
75
75
  localBundlePath: process.env.LOCAL_BUNDLE_PATH ||
76
76
  fileConfig.localBundlePath ||
77
- path_1.default.join(__dirname, 'dist', 'local-control-bundle.js')
77
+ path_1.default.join(process.cwd(), 'dist', 'local-control-bundle.js')
78
78
  };
79
79
  }
80
80
  function runSession(remoteEnvironmentUrl, remoteScriptToIntercept, remoteStylesheetToIntercept, localBundlePath, localCssPath) {
@@ -96,7 +96,7 @@ function runSession(remoteEnvironmentUrl, remoteScriptToIntercept, remoteStylesh
96
96
  color_logger_1.default.debug(` Local CSS path: ${LOCAL_CSS_PATH}`);
97
97
  color_logger_1.default.debug('');
98
98
  // Path to store your session cookies
99
- const AUTH_DIR = path_1.default.join(__dirname, '.auth');
99
+ const AUTH_DIR = path_1.default.join(process.cwd(), '.auth');
100
100
  const STATE_FILE = path_1.default.join(AUTH_DIR, 'state.json');
101
101
  (() => __awaiter(this, void 0, void 0, function* () {
102
102
  color_logger_1.default.log('🚀 Starting ephemeral browser session...');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Command line helper for building and publishing PCF controls to Dataverse.",
5
5
  "main": "dist/index.js",
6
6
  "types": "./types/",