@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/dist/.tsbuildinfo +1 -1
- package/dist/command.js +2 -3
- package/dist/command.js.map +1 -1
- package/dist/dev.d.ts.map +1 -1
- package/dist/dev.js +3 -6
- package/dist/dev.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runner/index.d.ts.map +1 -1
- package/dist/runner/index.js +1 -3
- package/dist/runner/index.js.map +1 -1
- package/dist/server/index.js +1 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/proxy.d.ts +0 -1
- package/dist/server/proxy.d.ts.map +1 -1
- package/dist/server/proxy.js +1 -1
- package/dist/server/proxy.js.map +1 -1
- package/dist/server/routes.js +1 -1
- package/dist/server/routes.js.map +1 -1
- package/dist/services/annotation-errors.js +1 -2
- package/dist/services/annotation-errors.js.map +1 -1
- package/dist/services/api.d.ts +2 -2
- package/dist/services/env.js +1 -2
- package/dist/services/env.js.map +1 -1
- package/dist/services/file-watcher.js +1 -2
- package/dist/services/file-watcher.js.map +1 -1
- package/dist/services/logger.d.ts.map +1 -1
- package/dist/services/logger.js.map +1 -1
- package/dist/services/user-config.js +1 -2
- package/dist/services/user-config.js.map +1 -1
- package/package.json +17 -17
- package/src/dev.ts +3 -4
- package/src/runner/index.ts +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackbit/dev",
|
|
3
|
-
"version": "2.2.
|
|
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.
|
|
26
|
-
"@stackbit/
|
|
27
|
-
"@stackbit/
|
|
28
|
-
"
|
|
29
|
-
"
|
|
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.
|
|
35
|
+
"dotenv": "^16.4.7",
|
|
36
36
|
"express": "^4.17.2",
|
|
37
|
-
"fs-extra": "^
|
|
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": "^
|
|
42
|
+
"uuid": "^11.1.0",
|
|
43
43
|
"winston": "^3.4.0",
|
|
44
|
-
"yargs": "^17.
|
|
44
|
+
"yargs": "^17.7.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@stackbit/types": "2.1.15
|
|
48
|
-
"@types/axios": "^0.14.
|
|
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": "^
|
|
52
|
+
"@types/fs-extra": "^11.0.4",
|
|
53
53
|
"@types/http-proxy-middleware": "^1.0.0",
|
|
54
|
-
"@types/lodash": "^4.
|
|
55
|
-
"@types/uuid": "^
|
|
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": "
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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;
|
package/src/runner/index.ts
CHANGED
|
@@ -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
|
-
//
|
|
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
|