Skip to content

Commit f6143d9

Browse files
committed
Use options until we get a fix for lukeed/sade#57
1 parent 2a23f07 commit f6143d9

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@alinea/generated": "link:.alinea",
1515
"@monaco-editor/react": "^4.4.5",
16-
"alinea": "link:../..",
16+
"alinea": "0.0.0",
1717
"lz-string": "^1.4.4",
1818
"next": "^13.4.8",
1919
"react": "18.2.0",

src/cli/bin.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ const prog = sade('alinea')
1010

1111
prog
1212
.version(version)
13-
.command('build [config]')
13+
.command('build')
1414
.alias('generate')
1515
.describe('Generate types and content cache')
16+
.option('-c, --config', `Config file location`)
1617
.option('-w, --watch', `Watch for changes to source files`)
1718
.option('-d, --dir', `Directory containing the alinea config file`)
1819
.option(
1920
'--fix',
2021
`Any missing or incorrect properties will be overwritten by their default`
2122
)
22-
.action(async (config, args) => {
23+
.action(async args => {
2324
ensureNode()
2425
ensureReact()
2526
const {generate} = await import('./Generate.js')
@@ -28,7 +29,7 @@ prog
2829
watch: args.watch,
2930
fix: args.fix,
3031
onAfterGenerate: forwardCommand,
31-
configFile: config
32+
configFile: args.config
3233
})) {
3334
}
3435
})
@@ -42,14 +43,15 @@ prog
4243
return init(args)
4344
})
4445

45-
.command('dev [config]')
46+
.command('dev')
4647
.alias('serve')
4748
.describe('Start a development dashboard')
49+
.option('-c, --config', `Config file location`)
4850
.option('-d, --dir', `Directory containing the alinea config file`)
4951
.option('-p, --port', `Port to listen on`)
5052
.option('--production', `Use production backend`)
5153
.option('--dev', `Watch alinea sources`)
52-
.action(async (config, args) => {
54+
.action(async args => {
5355
ensureNode()
5456
ensureReact()
5557
ensureEnv(args.dir)
@@ -60,7 +62,7 @@ prog
6062
alineaDev: args.dev,
6163
cwd: args.dir,
6264
onAfterGenerate: forwardCommand,
63-
configFile: config
65+
configFile: args.config
6466
})
6567
})
6668

yarn.lock

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ __metadata:
201201
"@monaco-editor/react": ^4.4.5
202202
"@types/node": 20.0.0
203203
"@types/react": ^18.2.13
204-
alinea: "link:../.."
204+
alinea: 0.0.0
205205
cross-env: ^7.0.3
206206
eslint: 8.39.0
207207
eslint-config-next: 13.4.0
@@ -2645,12 +2645,6 @@ __metadata:
26452645
languageName: unknown
26462646
linkType: soft
26472647

2648-
"alinea@link:../..::locator=%40alinea%2Fweb%40workspace%3Aapps%2Fweb":
2649-
version: 0.0.0-use.local
2650-
resolution: "alinea@link:../..::locator=%40alinea%2Fweb%40workspace%3Aapps%2Fweb"
2651-
languageName: node
2652-
linkType: soft
2653-
26542648
"ansi-align@npm:^3.0.1":
26552649
version: 3.0.1
26562650
resolution: "ansi-align@npm:3.0.1"

0 commit comments

Comments
 (0)