Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.0.0",
"devDependencies": {
"husky": "^9.1.7",
"pnpm": "^10.28.0"
"pnpm": "^10.28.0",
"@types/minimatch": "^3.0.5"
},
"engines": {
"node": ">=18.0.0"
Expand Down
14 changes: 9 additions & 5 deletions packages/contentstack-apps-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,18 @@
}
},
"scripts": {
"build": "npm run clean && shx rm -rf lib && tsc -b",
"lint": "eslint . --ext .ts --config .eslintrc",
"postpack": "shx rm -f oclif.manifest.json",
"build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json",
"copy-config": "[ -d src/config ] && cp -r src/config lib/ || true",
"lint": "eslint src/**/*.ts",
"format": "eslint src/**/*.ts --fix",
"postpack": "rm -f oclif.manifest.json",
"posttest": "npm run lint",
"prepack": "npm run build && oclif manifest && oclif readme",
"prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"pretest": "tsc -p test",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json",
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"",
"test:unit:report:json": "mocha --reporter json --reporter-options output=report.json --forbid-only \"test/unit/**/*.test.ts\" && nyc --reporter=clover --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
},
Expand Down
19 changes: 11 additions & 8 deletions packages/contentstack-bulk-operations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"uuid": "^14.0.0"
},
"devDependencies": {
"@oclif/core": "^4.11.4",
"@types/chai": "^5.2.3",
"@types/lodash": "^4.17.24",
"@types/mocha": "^10.0.10",
Expand Down Expand Up @@ -76,23 +77,25 @@
}
},
"scripts": {
"build": "npm run clean && shx rm -rf lib && tsc -b",
"lint": "eslint .",
"build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json",
"copy-config": "[ -d src/config ] && cp -r src/config lib/ || true",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint . --fix",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format": "eslint src/**/*.ts --fix",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
"postpack": "shx rm -f oclif.manifest.json",
"postpack": "rm -f oclif.manifest.json",
"posttest": "npm run lint",
"prepack": "npm run build && oclif manifest && oclif readme && npm run changelog",
"prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"pretest": "tsc -p test",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"test:coverage": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"test:coverage:report": "nyc --reporter=lcov --reporter=text --reporter=clover --reporter=json-summary --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"test:json": "mocha --forbid-only \"test/**/*.test.ts\" --reporter json --reporter-options output=report.json",
"test:safe": "[ -d test ] && npm test || echo 'No test directory found, skipping tests'",
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json",
"prepare": "npx husky && chmod +x .husky/pre-commit"
"version": "oclif readme && git add README.md"
},
"engines": {
"node": ">=20.19.0"
Expand Down
10 changes: 8 additions & 2 deletions packages/contentstack-cli-cm-regex-validate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,19 @@
},
"repository": "contentstack/cli-cm-regex-validate",
"scripts": {
"build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json",
"copy-config": "[ -d src/config ] && cp -r src/config lib/ || true",
"lint": "eslint src/**/*.ts",
"mocha": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"postpack": "rm -f oclif.manifest.json",
"posttest": "eslint . --ext .ts --config .eslintrc",
"prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme",
"prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"pretest": "tsc -p test",
"test": "jest --detectOpenHandles --silent",
"version": "oclif-dev readme && git add README.md",
"prepare": "npx husky && chmod +x .husky/pre-commit"
"format": "eslint src/**/*.ts --fix"
},
"dependencies": {
"@contentstack/cli-command": "^1.8.2",
Expand Down
9 changes: 6 additions & 3 deletions packages/contentstack-cli-tsgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@
"directory": "packages/contentstack-cli-tsgen"
},
"scripts": {
"build": "pnpm compile && oclif manifest && oclif readme",
"build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json",
"lint": "eslint . --ext .ts --config .eslintrc.js",
"copy-config": "[ -d src/config ] && cp -r src/config lib/ || true",
"lint": "eslint src/**/*.ts",
"format": "eslint src/**/*.ts --fix",
"postpack": "rm -f oclif.manifest.json",
"posttest": "eslint . --ext .ts --config .eslintrc.js --fix",
"prepack": "pnpm compile && oclif manifest && oclif readme",
"prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"pretest": "[ -f test/tsconfig.json ] && tsc -p test || true",
"test": "jest --testPathPattern=tests",
"test:integration": "jest --testPathPattern=tests/integration",
"version": "oclif readme && git add README.md"
Expand Down
1 change: 1 addition & 0 deletions packages/contentstack-cli-tsgen/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"target": "es2017",
"skipLibCheck": true,
"resolveJsonModule": true,
"types": ["node"]
},
"include": [
"src/**/*"
Expand Down
12 changes: 8 additions & 4 deletions packages/contentstack-content-type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,19 @@
"directory": "packages/contentstack-content-type"
},
"scripts": {
"build": "rm -rf lib && tsc -b && oclif manifest && oclif readme",
"prepack": "pnpm run build",
"build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"compile": "tsc -b tsconfig.json",
"copy-config": "[ -d src/config ] && cp -r src/config lib/ || true",
"prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"postpack": "rm -f oclif.manifest.json",
"pretest": "[ -f test/tsconfig.json ] && tsc -p test || true",
"test": "jest",
"test:unit": "jest",
"test:coverage": "jest --coverage",
"posttest": "eslint . --ext .ts --config .eslintrc",
"lint": "eslint . --ext .ts --config .eslintrc",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo oclif.manifest.json",
"lint": "eslint src/**/*.ts",
"format": "eslint src/**/*.ts --fix",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"version": "oclif readme && git add README.md"
},
"csdxConfig": {
Expand Down
3 changes: 2 additions & 1 deletion packages/contentstack-migrate-rte/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ node_modules
oclif.manifest.json
# Husky 9 internal folder (created by "husky" on install; do not commit)
.husky/_
*.log
*.log
tsconfig.tsbuildinfo
12 changes: 8 additions & 4 deletions packages/contentstack-migrate-rte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@
"directory": "packages/contentstack-migrate-rte"
},
"scripts": {
"build": "oclif manifest",
"prepare": "npx husky && chmod +x .husky/pre-commit",
"build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"compile": "tsc -b tsconfig.json",
"copy-config": "[ -d src/config ] && cp -r src/config lib/ || true",
"postpack": "rm -f oclif.manifest.json",
"prepack": "oclif manifest && oclif readme",
"prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
"pretest": "[ -f test/tsconfig.json ] && tsc -p test || true",
"test": "nyc --check-coverage=false mocha --require test/setup.js --forbid-only \"test/**/*.test.js\"",
"lint": "eslint src/**/*.js",
"format": "eslint src/**/*.js --fix",
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo"
},
"csdxConfig": {
"shortCommandName": {
Expand Down
13 changes: 13 additions & 0 deletions packages/contentstack-migrate-rte/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"allowJs": true,
"noEmit": true,
"skipLibCheck": true,
"esModuleInterop": true,
"rootDir": "src",
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*"]
}
Loading
Loading