Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4d9def

Browse files
committed
update node service tsconfig
1 parent b4bcfe0 commit f4d9def

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

server/node-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"debug": "nodemon --inspect src/server.ts",
1212
"start": "node ./build/src/server.js",
1313
"test": "jest",
14-
"copy": "copyfiles -u 1 src/**/*.!(ts|test.ts) build/src",
14+
"copy": "copyfiles -u 1 src/**/*.!(ts|test.ts) build",
1515
"genOpenApiPlugin": "npx ts-node --files ./scripts/openApiDataSourceGen.ts",
16-
"build": "rm -rf build/ && yarn test && tsc && cp -r src/static build/src/static"
16+
"build": "rm -rf build/ && yarn test && tsc && yarn copy"
1717
},
1818
"devDependencies": {
1919
"@types/jest": "^29.2.4",

server/node-service/src/plugins/github/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ConfigToType, DataSourcePlugin } from "openblocks-sdk/dataSource";
66
import { runOpenApi } from "../openApi";
77
import { parseOpenApi, ParseOpenApiOptions } from "../openApi/parse";
88

9-
const spec = readYaml(path.join(__dirname, "./gitHub.spec.yaml"));
9+
const spec = readYaml(path.join(__dirname, "./github.spec.yaml"));
1010

1111
const dataSourceConfig = {
1212
type: "dataSource",

server/node-service/src/plugins/openApi/parse.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ describe("swagger parse", () => {
1111
const doc = await SwaggerParser.bundle(demoSwaggerYaml);
1212
const { actions } = await parseOpenApi(doc);
1313
expect(actions.length).toBeGreaterThan(0);
14-
console.info(actions[0].params);
1514
});
1615
});

server/node-service/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"ts-node": {
33
"files": true
44
},
5+
"include": ["./src"],
56
"compilerOptions": {
67
"target": "es6",
78
"lib": ["dom", "dom.iterable", "esnext"],

0 commit comments

Comments
 (0)