sb-mig 3.1.9 → 4.0.0

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.
@@ -1,4 +1,5 @@
1
1
  import config from "../config/config.js";
2
2
  export const debug = async () => {
3
+ console.log("v4.0.0");
3
4
  console.log("storyblok.config.js: ", config, "\n");
4
5
  };
@@ -11,7 +11,7 @@ const getStoryblokConfigContent = (data) => {
11
11
  .catch(() => {
12
12
  Logger.warning("Cannot find requested file with .js extension.");
13
13
  Logger.log("Trying .mjs extension\n");
14
- import(`${data.filePath}.mjs`)
14
+ return import(`${data.filePath}.mjs`)
15
15
  .then((res) => {
16
16
  Logger.success("Found storyblok.config.mjs!");
17
17
  return res.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sb-mig",
3
- "version": "3.1.9",
3
+ "version": "4.0.0",
4
4
  "description": "CLI to rule the world. (and handle stuff related to Storyblok CMS)",
5
5
  "author": "Marcin Krawczyk <marckraw@icloud.com>",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "access": "public"
16
16
  },
17
17
  "bugs": "https://github.com/sb-mig/sb-mig/issues",
18
- "homepage": "https://sb-mig.com",
18
+ "homepage": "https://github.com/sb-mig/sb-mig",
19
19
  "keywords": [
20
20
  "cli",
21
21
  "storyblok",
@@ -34,15 +34,18 @@
34
34
  "/dist"
35
35
  ],
36
36
  "scripts": {
37
+ "lint-staged": "lint-staged",
37
38
  "build": "rm -rf dist && tsc",
38
39
  "build:dev": "rm -rf dist && tsc && chmod +x ./dist/index.js",
39
40
  "test": "echo \"Error: no test specified\" && exit 1",
40
41
  "start": "yarn build && ./dist/index.js",
41
42
  "debug": "yarn build && ./dist/index.js sync components accordion accordion-item",
42
- "version": "conventional-changelog -p eslint -i CHANGELOG.md -s"
43
+ "version": "conventional-changelog -p eslint -i CHANGELOG.md -s",
44
+ "semantic-release": "semantic-release",
45
+ "prepare": "husky install"
43
46
  },
44
47
  "dependencies": {
45
- "axios": "^0.25.0",
48
+ "axios": "^0.27.2",
46
49
  "chalk": "^5.0.0",
47
50
  "dotenv": "^14.3.1",
48
51
  "glob": "^7.2.0",
@@ -51,12 +54,27 @@
51
54
  "storyblok-js-client": "^4.2.0"
52
55
  },
53
56
  "devDependencies": {
57
+ "@commitlint/cli": "^17.0.0",
58
+ "@commitlint/config-conventional": "^17.0.0",
59
+ "@semantic-release/changelog": "^6.0.1",
60
+ "@semantic-release/git": "^10.0.1",
54
61
  "@sindresorhus/tsconfig": "^2.0.0",
55
62
  "@types/glob": "^7.2.0",
56
63
  "@types/ncp": "^2.0.5",
57
- "@types/node": "^17.0.12",
64
+ "@types/node": "^17.0.35",
65
+ "commitizen": "^4.0.4",
58
66
  "conventional-changelog-cli": "^2.0.31",
59
- "typescript": "^4.5.5"
67
+ "eslint": "^8.16.0",
68
+ "eslint-config-prettier": "^8.5.0",
69
+ "husky": "^8.0.1",
70
+ "lint-staged": "^12.4.1",
71
+ "prettier": "^2.6.2",
72
+ "semantic-release": "^19.0.2",
73
+ "typescript": "^4.6.4"
60
74
  },
61
- "gitHead": "d411b03fe6bdd2a7b147ab746316e1cb279ec67b"
75
+ "config": {
76
+ "commitizen": {
77
+ "path": "./node_modules/cz-conventional-changelog"
78
+ }
79
+ }
62
80
  }