-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* No longer needed to prepend header and descriptions
- Loading branch information
1 parent
cac3c75
commit 3c1b1b2
Showing
9 changed files
with
62 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
fs.readdir(path.join(__dirname, "..", "src"), function(err, files) { | ||
files = files.map(function(value) { | ||
fs.readdir(path.join(__dirname, "..", "src"), function (err, files) { | ||
files = files.map(function (value) { | ||
return path.join("src", value); | ||
}); | ||
|
||
Promise.all(files.map((name)=>fs.promises.readFile(name))).then( | ||
(fileContents)=>{ | ||
fs.writeFileSync(path.join(__dirname, "..", "dist", "index.d.ts"), | ||
Buffer.concat(fileContents)); | ||
}, (reason)=>{ | ||
console.log(reason); | ||
}); | ||
Promise.all(files.map((name) => fs.promises.readFile(name))) | ||
.then((fileContents) => { | ||
fs.writeFileSync( | ||
path.join(__dirname, "..", "dist", "index.d.ts"), | ||
Buffer.concat(fileContents) | ||
); | ||
}, (reason) => { | ||
console.log(reason); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* | ||
!**/*.d.ts | ||
!**/*.d.cts | ||
!**/*.d.mts | ||
!**/*.d.*.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"private": true, | ||
"name": "@types/screeps", | ||
"version": "3.3.9999", | ||
"projects": [ | ||
"https://github.com/screeps/screeps" | ||
], | ||
"devDependencies": { | ||
"@types/screeps": "workspace:." | ||
}, | ||
"owners": [ | ||
{ | ||
"name": "Nhan Ho", | ||
"githubUsername": "NhanHo" | ||
}, | ||
{ | ||
"name": "Bryan", | ||
"githubUsername": "bryanbecker" | ||
}, | ||
{ | ||
"name": "Resi Respati", | ||
"githubUsername": "resir014" | ||
}, | ||
{ | ||
"name": "Adam Laycock", | ||
"githubUsername": "Arcath" | ||
}, | ||
{ | ||
"name": "Dominic Marcuse", | ||
"githubUsername": "dmarcuse" | ||
}, | ||
{ | ||
"name": "Skyler Kehren", | ||
"githubUsername": "pyrodogg" | ||
}, | ||
{ | ||
"name": "Kieran Carnegie", | ||
"githubUsername": "kotarou" | ||
}, | ||
{ | ||
"name": "Mofeng", | ||
"githubUsername": "DiamondMofeng" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters