Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Razenpok committed Nov 28, 2021
1 parent 971f76d commit 98c6d2d
Show file tree
Hide file tree
Showing 43 changed files with 3,365 additions and 2,079 deletions.
22 changes: 22 additions & 0 deletions api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",

"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts",

"apiReport": {
"enabled": false
},

"docModel": {
"enabled": false
},

"tsdocMetadata": {
"enabled": false
},

"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts"
}
}
24 changes: 11 additions & 13 deletions build/post-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ const path = require("path");

const directory = "dist";

fs.readdir(directory, (err, files) => {
if (err) throw err;
const files = fs.readdirSync(directory);

for (const file of files) {
if (file.endsWith("index.d.ts")) {
continue;
}
if (!file.endsWith("d.ts")) {
continue;
}
fs.unlink(path.join(directory, file), err => {
if (err) throw err;
});
for (const file of files) {
if (file.endsWith("break_infinity.js.d.ts")) {
continue;
}
});
if (!file.endsWith("d.ts")) {
continue;
}
fs.unlinkSync(path.join(directory, file));
}

fs.rmdirSync(path.join(directory, "modules"), { recursive: true, force: true });
2 changes: 1 addition & 1 deletion dist/break_infinity.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/break_infinity.esm.js

Large diffs are not rendered by default.

Loading

0 comments on commit 98c6d2d

Please sign in to comment.