Skip to content

Commit

Permalink
feat: generate sdk on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnig committed Apr 1, 2023
1 parent c87c7e5 commit 632b7db
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 767 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "fluxapi",
"version": "2.26.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "fastify-flux-cli",
"version": "2.23.1",
"description": "",
"main": "./dist/index.js",
"exports": "./dist/index.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ async function startSdkWatch() {
})
.on('add', handler)
.on('change', handler);

handler();
});
}

Expand Down
1 change: 0 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "fastify-flux",
"version": "2.26.5",
"description": "",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/create-flux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "create-fastify-flux",
"version": "2.23.1",
"description": "",
"main": "./dist/index.js",
"bin": {
Expand Down
1 change: 1 addition & 0 deletions packages/integration-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
# Keep environment variables out of version control
.env
generated-*
2 changes: 1 addition & 1 deletion packages/integration-tests/flux.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = {
{
run: ['node', 'server.js'],
sdk: {
name: 'GeneratedApi.ts',
name: 'generated-api.ts',
output: './tests-e2e/api/',
moduleNameIndex: 0,
},
Expand Down
1 change: 0 additions & 1 deletion packages/integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "integration-tests",
"version": "2.23.1",
"description": "",
"private": true,
"scripts": {
Expand Down
Loading

0 comments on commit 632b7db

Please sign in to comment.