-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(*): Convierte en ESM y refactoriza parseado de proyectos par…
…a detectar locales #52
- Loading branch information
1 parent
941eab7
commit a6581fe
Showing
6 changed files
with
794 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
const path = require('path'); | ||
const project = require('../lib/project'); | ||
import path from 'node:path'; | ||
import { parseProject } from '../lib/project.js'; | ||
|
||
module.exports = app => project(path.resolve(app.args.shift()), app.opts); | ||
export const cmd = ({ args, opts, pkg }) => parseProject( | ||
path.resolve(args.shift()), | ||
opts, | ||
pkg, | ||
); | ||
|
||
module.exports.args = [ | ||
export const args = [ | ||
{ name: 'dir', required: true }, | ||
]; | ||
|
||
module.exports.options = [ | ||
export const options = [ | ||
{ name: 'repo', required: true }, | ||
{ name: 'version', required: true }, | ||
{ name: 'locale', required: true }, | ||
{ name: 'track', required: true }, | ||
{ name: 'lo', required: false }, | ||
{ name: 'suffix', required: false }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.