@stackbit/dev 2.2.35-staging.1 → 2.2.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackbit/dev",
3
- "version": "2.2.35-staging.1",
3
+ "version": "2.2.36",
4
4
  "description": "stackbit-dev",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,39 +22,39 @@
22
22
  "author": "Stackbit Inc.",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@stackbit/cms-core": "3.1.22-staging.1",
26
- "@stackbit/cms-git": "1.0.35-staging.1",
27
- "@stackbit/dev-common": "1.0.41-staging.1",
28
- "@stackbit/sdk": "2.1.18-staging.1",
29
- "axios": "^1.7.7",
25
+ "@stackbit/cms-core": "3.1.23",
26
+ "@stackbit/dev-common": "1.0.42",
27
+ "@stackbit/sdk": "2.1.19",
28
+ "axios": "^1.8.2",
29
+ "body-parser": "^1.20.3",
30
30
  "chalk": "^4.1.0",
31
31
  "chokidar": "^3.5.3",
32
- "configstore": "^5",
32
+ "configstore": "^5.0.1",
33
33
  "cors": "^2.8.5",
34
34
  "detect-port": "^1.3.0",
35
- "dotenv": "^16.0.3",
35
+ "dotenv": "^16.4.7",
36
36
  "express": "^4.17.2",
37
- "fs-extra": "^10.0.0",
37
+ "fs-extra": "^11.3.0",
38
38
  "http-proxy-middleware": "^3.0.3",
39
39
  "lodash": "^4.17.21",
40
40
  "open": "^8.4.0",
41
41
  "rimraf": "^3.0.2",
42
- "uuid": "^8.3.2",
42
+ "uuid": "^11.1.0",
43
43
  "winston": "^3.4.0",
44
- "yargs": "^17.3.1"
44
+ "yargs": "^17.7.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@stackbit/types": "2.1.15-staging.1",
48
- "@types/axios": "^0.14.0",
47
+ "@stackbit/types": "2.1.15",
48
+ "@types/axios": "^0.14.4",
49
49
  "@types/configstore": "^5.0.1",
50
50
  "@types/detect-port": "^1.3.2",
51
51
  "@types/express": "^4.17.13",
52
- "@types/fs-extra": "^9.0.13",
52
+ "@types/fs-extra": "^11.0.4",
53
53
  "@types/http-proxy-middleware": "^1.0.0",
54
- "@types/lodash": "^4.14.178",
55
- "@types/uuid": "^8.3.4",
54
+ "@types/lodash": "^4.17.16",
55
+ "@types/uuid": "^10.0.0",
56
56
  "copyfiles": "^2.4.1",
57
57
  "response-time": "^2.3.2"
58
58
  },
59
- "gitHead": "10f179eaffbb19523eb7df47a7ffb3fe3ee1dd6b"
59
+ "gitHead": "549c07f88e0843e4caa56c1d03e963add087dc86"
60
60
  }
package/src/dev.ts CHANGED
@@ -120,10 +120,9 @@ export async function start(options: DevOptions): Promise<{ serverPort: number }
120
120
  tenant: options.aprimoTenant
121
121
  };
122
122
  }
123
- if (process.env.CSI_ENABLED) {
124
- logger.debug('CSI Enabled');
125
- options.csiEnabled = true;
126
- }
123
+
124
+ logger.debug('CSI Enabled');
125
+ options.csiEnabled = true;
127
126
 
128
127
  options.csiWebhookUrl ||= process.env.CSI_WEBHOOK_URL || configEnv.CSI_WEBHOOK_URL;
129
128
  options.teamId ||= process.env.NETLIFY_TEAM_ID;
@@ -196,10 +196,8 @@ export default class Runner implements APIMethodInterface {
196
196
 
197
197
  for (const error of errors) {
198
198
  if (error instanceof StackbitConfigNotFoundError) {
199
- // if stackbit config was not found, log the error message,
200
- // and continue running using the default git-cms behavior
199
+ // If stackbit config was not found, log the error message.
201
200
  this.logger.warn(error.message);
202
- this.logger.warn('loading the project as a Git CMS project with a default configuration');
203
201
  } else if (error instanceof ConfigLoadError) {
204
202
  // if stackbit config was found, but it had a fatal error, exit the process
205
203
  // the error will be logged by the catch block of the dev command