diff options
author | 2022-11-09 15:40:40 -0800 | |
---|---|---|
committer | 2022-11-09 15:40:40 -0800 | |
commit | f7f1b604443c030afe29d1059b90f72c69afe081 (patch) | |
tree | 8f2397447b2a84dab02850007264b72cc565f5d6 /misctools/publish-examples.js | |
parent | da257336b0b70df8c31da647496899cf70670000 (diff) | |
download | bun-f7f1b604443c030afe29d1059b90f72c69afe081.tar.gz bun-f7f1b604443c030afe29d1059b90f72c69afe081.tar.zst bun-f7f1b604443c030afe29d1059b90f72c69afe081.zip |
Add bun-types, add typechecking, add `child_process` types (#1475)
* Add bun-types to packages
* Improve typing
* Fix types in tests
* Fix dts tests
* Run formatter
* Fix all type errors
* Add strict mode, fix type errors
* Add ffi changes
* Move workflows to root
* Add workflows
* Remove labeler
* Add child_process types
* Fix synthetic defaults issue
* Remove docs
* Move scripts
* Run prettier
* Include examples in typechecking
* captureStackTrace types
* moved captureStackTrace types to globals
* Address reviews
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
Diffstat (limited to 'misctools/publish-examples.js')
-rw-r--r-- | misctools/publish-examples.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/misctools/publish-examples.js b/misctools/publish-examples.js index d84466e15..4124d0785 100644 --- a/misctools/publish-examples.js +++ b/misctools/publish-examples.js @@ -16,7 +16,7 @@ var count = 0; const examplesFolderEntries = fs.readdirSync( path.join(process.cwd(), "examples"), - { withFileTypes: true } + { withFileTypes: true }, ); const packageNames = []; @@ -30,7 +30,7 @@ for (let folder of examplesFolderEntries) { try { packageJSONText = fs.readFileSync( path.join(absolute, "package.json"), - "utf8" + "utf8", ); } catch { continue; @@ -72,7 +72,7 @@ for (let folder of examplesFolderEntries) { try { fs.copyFileSync( path.join(absolute, ".gitignore"), - path.join(absolute, "gitignore") + path.join(absolute, "gitignore"), ); } catch (exception) {} @@ -87,7 +87,7 @@ for (let folder of examplesFolderEntries) { fs.writeFileSync( path.join(absolute, "package.json"), - JSON.stringify(packageJSON, null, 2) + JSON.stringify(packageJSON, null, 2), ); try { exec(`npm version patch --force --no-commit-hooks --no-git-tag-version`, { @@ -95,7 +95,7 @@ for (let folder of examplesFolderEntries) { }); packageJSON = JSON.parse( - fs.readFileSync(path.join(absolute, "package.json"), "utf8") + fs.readFileSync(path.join(absolute, "package.json"), "utf8"), ); version = packageJSON.version; } catch (e) { @@ -109,7 +109,7 @@ for (let folder of examplesFolderEntries) { `npm publish ${ DRY_RUN ? "--dry-run" : "" } --access public --registry https://registry.npmjs.org/`, - { cwd: absolute } + { cwd: absolute }, ); packageNames.push([ packageJSON.name, @@ -149,13 +149,13 @@ if (packageNames.length > 0) { } catch (exception) {} fs.writeFileSync( path.join(dir, "package.json"), - JSON.stringify(packageJSON, null, 2) + JSON.stringify(packageJSON, null, 2), ); exec( `npm publish ${ DRY_RUN ? "--dry-run" : "" } --access public --registry https://registry.npmjs.org/`, - { cwd: dir } + { cwd: dir }, ); } |