Skip to content

Commit 4157d61

Browse files
update package json
1 parent 60d5412 commit 4157d61

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

packages/contentstack-apps-cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@
8080
}
8181
},
8282
"scripts": {
83-
"build": "npm run clean && shx rm -rf lib && tsc -b",
83+
"build": "pnpm clean && tsc -b",
8484
"lint": "eslint . --ext .ts --config .eslintrc",
8585
"postpack": "shx rm -f oclif.manifest.json",
86-
"posttest": "npm run lint",
87-
"prepack": "npm run build && oclif manifest && oclif readme",
86+
"posttest": "pnpm lint",
87+
"prepack": "pnpm build && oclif manifest && oclif readme",
8888
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
8989
"version": "oclif readme && git add README.md",
9090
"clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json",

packages/contentstack-bulk-operations/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,22 @@
7676
}
7777
},
7878
"scripts": {
79-
"build": "npm run clean && shx rm -rf lib && tsc -b",
79+
"build": "pnpm clean && tsc -b",
8080
"lint": "eslint .",
8181
"lint:fix": "eslint . --fix",
8282
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
8383
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
8484
"postpack": "shx rm -f oclif.manifest.json",
85-
"posttest": "npm run lint",
86-
"prepack": "npm run build && oclif manifest && oclif readme && npm run changelog",
85+
"posttest": "pnpm lint",
86+
"prepack": "pnpm build && oclif manifest && oclif readme && pnpm changelog",
8787
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
8888
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
8989
"test:coverage": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
9090
"test:coverage:report": "nyc --reporter=lcov --reporter=text --reporter=clover --reporter=json-summary --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
9191
"test:json": "mocha --forbid-only \"test/**/*.test.ts\" --reporter json --reporter-options output=report.json",
92-
"test:safe": "[ -d test ] && npm test || echo 'No test directory found, skipping tests'",
92+
"test:safe": "[ -d test ] && pnpm test || echo 'No test directory found, skipping tests'",
9393
"version": "oclif readme && git add README.md",
94-
"clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json",
95-
"prepare": "npx husky && chmod +x .husky/pre-commit"
94+
"clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json"
9695
},
9796
"engines": {
9897
"node": ">=20.19.0"

packages/contentstack-cli-cm-regex-validate/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@
6161
"posttest": "eslint . --ext .ts --config .eslintrc",
6262
"prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme",
6363
"test": "jest --detectOpenHandles --silent",
64-
"version": "oclif-dev readme && git add README.md",
65-
"prepare": "npx husky && chmod +x .husky/pre-commit"
64+
"version": "oclif-dev readme && git add README.md"
6665
},
6766
"dependencies": {
6867
"@contentstack/cli-command": "^1.8.2",

packages/contentstack-migrate-rte/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
},
7070
"scripts": {
7171
"build": "oclif manifest",
72-
"prepare": "npx husky && chmod +x .husky/pre-commit",
7372
"postpack": "rm -f oclif.manifest.json",
7473
"prepack": "oclif manifest && oclif readme",
7574
"test": "nyc --check-coverage=false mocha --require test/setup.js --forbid-only \"test/**/*.test.js\"",

0 commit comments

Comments
 (0)