@easy-breezy/core
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -1,2 +0,2 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env node --no-warnings | ||
import i18n from './modules/i18n/index.js'; | ||
@@ -3,0 +3,0 @@ import config from './modules/config/index.js'; |
import { Command } from 'commander'; | ||
// @ts-ignore | ||
const { default: { version } } = await import('./../../../package.json', { | ||
assert: { | ||
type: "json", | ||
}, | ||
}); | ||
export class Args { | ||
@@ -8,2 +14,3 @@ program = new Command(); | ||
.description('CLI to generation code') | ||
.version(version) | ||
.option('-l, --lang <lang>', 'Language') | ||
@@ -10,0 +17,0 @@ .option('-c, --config <path>', 'Configuration file', './.easy-breezy/config.json') |
@@ -12,2 +12,8 @@ import { readdirSync } from 'fs'; | ||
import { deepSortObject } from './../../helpers/deep-sort-object/index.js'; | ||
// @ts-ignore | ||
const { default: { version } } = await import('./../../../package.json', { | ||
assert: { | ||
type: "json", | ||
}, | ||
}); | ||
class Config { | ||
@@ -102,2 +108,5 @@ static path = join(process.cwd(), args.opts.config); | ||
} | ||
if (version !== this.data.version) { | ||
this.data.version = version; | ||
} | ||
const path = join(process.cwd(), 'node_modules/@easy-breezy'); | ||
@@ -104,0 +113,0 @@ if (fs.exists(path)) { |
@@ -1,3 +0,3 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env node --no-warnings | ||
export type { IGeneratorProps } from './modules/generator/index.js'; | ||
export type { IPluginProps } from './modules/plugin/index.js'; |
{ | ||
"name": "@easy-breezy/core", | ||
"version": "2.0.9", | ||
"description": "", | ||
"version": "2.0.10", | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"types": "dist/types/index.d.ts", | ||
"description": "Command line root module", | ||
"keywords": [ | ||
"easy-breezy", | ||
"core", | ||
"codegen" | ||
], | ||
"homepage": "https://github.com/lamo2k123/easy-breezy", | ||
"bugs": { | ||
"url": "https://github.com/lamo2k123/easy-breezy/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/lamo2k123/easy-breezy" | ||
}, | ||
"imports": { | ||
@@ -43,3 +56,7 @@ "#module/*": "./dist/modules/*/index.js", | ||
"easybreezy": "dist/index.js" | ||
}, | ||
"engines": { | ||
"node": ">=18", | ||
"npm": ">=8" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
2
22954
25
637