|
1 | 1 | 'use strict'
|
2 | 2 |
|
3 | 3 | const File = require('vinyl')
|
4 |
| -const fs = require('fs') |
| 4 | +const fs = require('node:fs') |
5 | 5 | const { promises: fsp } = fs
|
6 | 6 | const { Octokit } = require('@octokit/rest')
|
7 |
| -const path = require('path') |
8 |
| -const { pipeline, Transform, Writable } = require('stream') |
| 7 | +const ospath = require('node:path') |
| 8 | +const { pipeline, Transform, Writable } = require('node:stream') |
9 | 9 | const forEach = (write, final) => new Writable({ objectMode: true, write, final })
|
10 | 10 | const map = (transform, flush = undefined) => new Transform({ objectMode: true, transform, flush })
|
11 | 11 | const vfs = require('vinyl-fs')
|
@@ -84,7 +84,7 @@ module.exports = (dest, bundleName, owner, repo, ref, token, updateBranch) => as
|
84 | 84 | const latestTagName = `${variant}-latest`
|
85 | 85 | const message = `Release ${tagName}`
|
86 | 86 | const bundleFileBasename = `${bundleName}-bundle.zip`
|
87 |
| - const bundleFile = await versionBundle(path.join(dest, bundleFileBasename), tagName) |
| 87 | + const bundleFile = await versionBundle(ospath.join(dest, bundleFileBasename), tagName) |
88 | 88 | let commit = await octokit.git.getRef({ owner, repo, ref }).then((result) => result.data.object.sha)
|
89 | 89 | const readmeContent = await fsp
|
90 | 90 | .readFile('README.adoc', 'utf-8')
|
|
0 commit comments