Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
74f4cb3034 | |||
b98dc7a9fa |
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-10-23 - 1.9.126 - fix(format)
|
||||||
|
Remove redundant package.json property checks
|
||||||
|
|
||||||
|
- Removed property checks for `main`, `typings`, and `browserslist` from format.packagejson.ts
|
||||||
|
- This change streamlines the formatting process by removing unnecessary exits
|
||||||
|
|
||||||
## 2024-09-29 - 1.9.125 - fix(cli)
|
## 2024-09-29 - 1.9.125 - fix(cli)
|
||||||
Fix package version configuration and formatting issues
|
Fix package version configuration and formatting issues
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/cli",
|
"name": "@git.zone/cli",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.9.125",
|
"version": "1.9.126",
|
||||||
"description": "A CLI toolbelt to streamline local development cycles by using various gitzone utilities.",
|
"description": "A CLI toolbelt to streamline local development cycles by using various gitzone utilities.",
|
||||||
"main": "dist_ts/index.ts",
|
"main": "dist_ts/index.ts",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
8426
pnpm-lock.yaml
generated
8426
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/cli',
|
name: '@git.zone/cli',
|
||||||
version: '1.9.125',
|
version: '1.9.126',
|
||||||
description: 'A CLI toolbelt to streamline local development cycles by using various gitzone utilities.'
|
description: 'A CLI toolbelt to streamline local development cycles by using various gitzone utilities.'
|
||||||
}
|
}
|
||||||
|
@ -70,23 +70,6 @@ export const run = async (projectArg: Project) => {
|
|||||||
packageJson.scripts.buildDocs = `tsdoc`;
|
packageJson.scripts.buildDocs = `tsdoc`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check package.json
|
|
||||||
if (!packageJson.main) {
|
|
||||||
logger.log('error', 'no "main" property');
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
if (!packageJson.typings) {
|
|
||||||
logger.log('error', 'no "typings" property');
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
if (!packageJson.browserslist) {
|
|
||||||
packageJson.browserslist = ['last 1 chrome versions'];
|
|
||||||
}
|
|
||||||
if (!packageJson.main.includes('dist_') || !packageJson.typings.includes('dist_')) {
|
|
||||||
logger.log('error', 'check packagesJson main and typings');
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
// check for files
|
// check for files
|
||||||
packageJson.files = [
|
packageJson.files = [
|
||||||
'ts/**/*',
|
'ts/**/*',
|
||||||
|
Reference in New Issue
Block a user