Skip to content

Commit 0a91ce2

Browse files
authored
Merge pull request #116 from json-schema-tools/fix/no-build-dir
fix: remove use of build dir
2 parents b940e13 + dc5d831 commit 0a91ce2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ describe("json-schema-tools semantic-release plugin", () => {
3838
},
3939
{ nextRelease: { version: "1.0.0" } }
4040
).then(async () => {
41-
const tsFile = await readFile("./testeroo/build/index.d.ts", "utf8");
41+
const tsFile = await readFile("./testeroo/index.d.ts", "utf8");
4242
expect(typeof tsFile).toEqual("string");
4343

4444
const goFile = await readFile("./testeroo/foobar.go", "utf8");
4545
expect(typeof goFile).toBe("string");
4646

47-
const exported = require('../testeroo/build/index.js'); // eslint-disable-line
47+
const exported = require('../testeroo/index.js'); // eslint-disable-line
4848
expect(exported.default.default).toBe(true);
4949
expect(exported.default.type).toBe("string");
5050
});

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ const generateTs = async (transpiler: Transpiler, schema: JSONSchemaObject, outp
6868
"es2015",
6969
],
7070
"declaration": true,
71-
"outDir": `${outpath}/build`,
71+
"outDir": `${outpath}`,
7272
"strict": true,
7373
"esModuleInterop": true,
7474
"resolveJsonModule": true,
7575
}, [
7676
indexTS,
7777
`${outpath}/src/schema.json`
7878
]);
79-
await writeFile(`${outpath}/build/index.d.ts`, transpiler.toTs());
79+
await writeFile(`${outpath}/index.d.ts`, transpiler.toTs());
8080
return true;
8181
}
8282

0 commit comments

Comments
 (0)