-
-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update deps * Remove prepare scripts, improve CI
- Loading branch information
Showing
11 changed files
with
1,097 additions
and
1,313 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"openapi-fetch": patch | ||
--- | ||
|
||
Remove prepare script |
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
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
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
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,32 @@ | ||
/** | ||
* Build | ||
* Only copies files & makes folders, but works on Windows too | ||
*/ | ||
import fs from "node:fs"; | ||
|
||
const cwd = new URL("../", import.meta.url); | ||
|
||
fs.mkdirSync(new URL("./dist/cjs/", cwd), { recursive: true }); | ||
|
||
const files = [ | ||
{ | ||
in: new URL("./index.js", cwd), | ||
out: new URL("./dist/index.js", cwd), | ||
}, | ||
{ | ||
in: new URL("./index.d.ts", cwd), | ||
out: new URL("./dist/index.d.ts", cwd), | ||
}, | ||
{ | ||
in: new URL("./index.js", cwd), | ||
out: new URL("./dist/cjs/index.cjs", cwd), | ||
}, | ||
{ | ||
in: new URL("./index.d.ts", cwd), | ||
out: new URL("./dist/cjs/index.d.cts", cwd), | ||
}, | ||
]; | ||
|
||
for (const f of files) { | ||
fs.copyFileSync(f.in, f.out); | ||
} |
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
Oops, something went wrong.