This repository has been archived by the owner on May 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unnecessary pnpm version spec * Remove only-allow * Update CI scripts * Add a tsconfig to the ci scripts file * Fix grammar in utils.cjs * Remove full stops at the end of messages * Fix accidentally using utils instead of console * Wrap some stuff in smart quotes * Handle missing Stream.hasColors * Use pnpm exec instead of pnpx * Update CI to use corepack * Use npx to run renovate-config-validator * Rename yml files to yaml * Use normal sized arrows
- Loading branch information
Showing
14 changed files
with
180 additions
and
148 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,19 +1,24 @@ | ||
#!/usr/bin/env node | ||
const { readFile, writeFile } = require('node:fs/promises'); | ||
const process = require('process'); | ||
const fs = require('node:fs'); | ||
const process = require('node:process'); | ||
const utils = require('../utils.cjs'); | ||
|
||
main(process.argv[2]).catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
try { | ||
const entrypoint = process.argv[2]; | ||
|
||
if (!entrypoint) { | ||
throw new Error('No entrypoint was specified'); | ||
} | ||
|
||
/** @param {string} entrypoint */ | ||
async function main (entrypoint) { | ||
const json = JSON.parse(await readFile('api-extractor.json', 'utf8')); | ||
const json = JSON.parse(fs.readFileSync('api-extractor.json', 'utf8')); | ||
|
||
if (json) { | ||
json.mainEntryPointFilePath = '<projectFolder>/' + entrypoint; | ||
} | ||
|
||
await writeFile('api-extractor.json', JSON.stringify(json), 'utf8'); | ||
fs.writeFileSync('api-extractor.json', JSON.stringify(json), 'utf8'); | ||
utils.log('Updated api-extractor config'); | ||
} catch (error) { | ||
utils.error(error); | ||
process.exit(1); | ||
} |
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,14 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"composite": true, | ||
"noEmit": true, | ||
"checkJs": true | ||
}, | ||
"include": [ | ||
"**/*.js", | ||
"**/*.cjs" | ||
], | ||
"references": [] | ||
} |
Oops, something went wrong.