sb-mig
Version:
CLI to rule the world. (and handle stuff related to Storyblok CMS)
129 lines (128 loc) • 4.93 kB
JSON
{
"name": "sb-mig",
"version": "6.0.0",
"description": "CLI to rule the world. (and handle stuff related to Storyblok CMS)",
"author": "Marcin Krawczyk <marckraw@icloud.com>",
"license": "MIT",
"bin": "./dist/cli/index.js",
"main": "./dist/cli/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/sb-mig/sb-mig.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"bugs": "https://github.com/sb-mig/sb-mig/issues",
"homepage": "https://github.com/sb-mig/sb-mig",
"keywords": [
"cli",
"storyblok",
"sb",
"migrate"
],
"type": "module",
"exports": {
".": "./dist/cli/index.js",
"./api-v2": {
"types": "./dist/api-v2/index.d.ts",
"import": "./dist/api-v2/index.js",
"require": "./dist-cjs/api-v2/index.js"
},
"./dist/*": "./dist/*"
},
"engines": {
"node": "^22.0.0 || >=24.0.0"
},
"files": [
"/dist",
"/dist-cjs",
"README.md"
],
"scripts": {
"lint-staged": "node ./src/scripts/fix-esm.js && lint-staged",
"build": "node ./src/scripts/clean-build.js && tsc -p tsconfig.json && tsc -p tsconfig.api-v2.cjs.json && node ./src/scripts/write-cjs-package.js && node ./src/scripts/make-cli-executable.js",
"build:dev": "chokidar 'src/**/*.{js,ts,cjs,mjs}' -c 'npm run build'",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint --fix",
"lint:all": "eslint .",
"lint:fix:all": "eslint . --fix",
"lint:ts": "cd src && tsc --declaration --emitDeclarationOnly && cd ..",
"typecheck": "tsc --noEmit",
"start": "npm run build && ./dist/cli/index.js",
"debug": "npm run build && ./dist/cli/index.js sync components accordion accordion-item",
"semantic-release": "semantic-release",
"prepare": "husky install",
"########## Tests ##########": "########################################################",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:unit": "vitest run --exclude=**/*.live.test.ts --exclude=**/*.e2e.test.ts",
"test:config": "vitest run __tests__/config",
"########## API Live Tests ##########": "########################################################",
"test:api-live": "STORYBLOK_LIVE_TESTS=true vitest run --testTimeout 60000 __tests__/api-live",
"test:api-live:spaces": "STORYBLOK_LIVE_TESTS=true vitest run --testTimeout 60000 __tests__/api-live/spaces",
"test:api-live:components": "STORYBLOK_LIVE_TESTS=true vitest run --testTimeout 60000 __tests__/api-live/components",
"test:api-live:stories": "STORYBLOK_LIVE_TESTS=true vitest run --testTimeout 60000 __tests__/api-live/stories",
"########## E2E Tests ##########": "########################################################",
"test:e2e": "STORYBLOK_E2E_TESTS=true vitest run --testTimeout 120000 __tests__/e2e",
"test:e2e:cli": "STORYBLOK_E2E_TESTS=true vitest run --testTimeout 120000 __tests__/e2e/cli-basic",
"test:e2e:sync": "STORYBLOK_E2E_TESTS=true vitest run --testTimeout 120000 __tests__/e2e/sync-components",
"########## All Tests ##########": "########################################################",
"test:all": "npm run test:unit && npm run test:api-live && npm run test:e2e"
},
"dependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-swc": "^0.4.0",
"@swc/core": "1.3.41",
"@swc/helpers": "^0.5.18",
"chalk": "^4.1.2",
"dotenv": "^17.2.3",
"form-data": "^4.0.0",
"fs-extra": "^11.2.0",
"glob": "^11.0.3",
"meow": "^11.0.0",
"ncp": "^2.0.0",
"node-fetch": "^3.3.2",
"rollup": "^3.28.0",
"semver": "^7.6.2",
"storyblok-js-client": "^7.2.1",
"storyblok-schema-types": "^1.2.4",
"typescript": "^5.9.3",
"uuid": "^9.0.0"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@ryansonshine/commitizen": "^4.2.8",
"@ryansonshine/cz-conventional-changelog": "^3.3.4",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@sindresorhus/tsconfig": "^3.0.1",
"@storyblok/react": "^3.0.10",
"@types/fs-extra": "^11.0.4",
"@types/ncp": "^2.0.8",
"@types/node": "^24.12.2",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@vitest/coverage-v8": "^2.1.0",
"chokidar-cli": "^3.0.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^3.0.3",
"semantic-release": "^21.0.9",
"semantic-release-slack-bot": "^4.0.1",
"tsc-files": "^1.1.4",
"vitest": "^2.1.0"
},
"config": {
"commitizen": {
"path": "./node_modules/@ryansonshine/cz-conventional-changelog"
}
}
}