-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fcfed0
commit 7062df4
Showing
20 changed files
with
70 additions
and
94 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
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
- uses: pnpm/action-setup@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
node-version: "21" | ||
cache: "pnpm" | ||
- name: Authenticate NPM | ||
uses: DimensionDev/github-token-action@latest | ||
|
@@ -89,7 +89,7 @@ jobs: | |
- uses: pnpm/action-setup@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
node-version: "21" | ||
cache: "pnpm" | ||
- name: Authenticate NPM | ||
uses: DimensionDev/github-token-action@latest | ||
|
@@ -106,7 +106,7 @@ jobs: | |
- uses: pnpm/action-setup@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
node-version: "21" | ||
cache: "pnpm" | ||
- name: Authenticate NPM | ||
uses: DimensionDev/github-token-action@latest | ||
|
@@ -129,7 +129,7 @@ jobs: | |
- uses: pnpm/[email protected] | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
node-version: "21" | ||
cache: "pnpm" | ||
- name: Authenticate NPM | ||
uses: DimensionDev/github-token-action@latest | ||
|
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 +1 @@ | ||
v20.4.0 | ||
v21.2.0 |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"type": "module", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18.7.0", | ||
"node": ">=21.2.0", | ||
"pnpm": ">=8.6.0", | ||
"yarn": ">=999.0.0", | ||
"npm": ">=999.0.0" | ||
|
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import { createHash } from 'node:crypto' | ||
import { mkdir, readFile, writeFile } from 'node:fs/promises' | ||
import { fileURLToPath } from 'node:url' | ||
|
||
const lockfilePath = fileURLToPath(new URL('../../pnpm-lock.yaml', import.meta.url)) | ||
const lockfilePath = new URL('../../pnpm-lock.yaml', import.meta.url) | ||
const lockfile = await readFile(lockfilePath) | ||
const hash = createHash('sha256') | ||
hash.update(lockfile) | ||
const polyfillVersion = 'v0' + hash.digest('hex') | ||
|
||
const versionFilePath = fileURLToPath(new URL('./dist/version.txt', import.meta.url)) | ||
const versionFilePath = new URL('./dist/version.txt', import.meta.url) | ||
const built = (await readFile(versionFilePath, 'utf-8').catch(() => '')) === polyfillVersion | ||
if (built) process.exit(0) | ||
await mkdir(fileURLToPath(new URL('./dist/', import.meta.url))).catch(() => '') | ||
await mkdir(new URL('./dist/', import.meta.url)).catch(() => '') | ||
await writeFile(versionFilePath, polyfillVersion) | ||
|
||
export default (await import('./config.js')).default |
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,14 +1,8 @@ | ||
#!/usr/bin/env node | ||
import { spawnSync } from 'child_process' | ||
import { fileURLToPath } from 'url' | ||
const child = spawnSync( | ||
process.execPath, | ||
[ | ||
'--loader', | ||
'ts-node/esm/transpile-only', | ||
fileURLToPath(new URL('./build.ts', import.meta.url)), | ||
...process.argv.slice(2), | ||
], | ||
['--loader', 'ts-node/esm/transpile-only', import.meta.resolve('./build.ts'), ...process.argv.slice(2)], | ||
{ stdio: 'inherit' }, | ||
) | ||
if (child.status) process.exit(child.status) |
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,14 +1,8 @@ | ||
#!/usr/bin/env node | ||
import { spawnSync } from 'child_process' | ||
import { fileURLToPath } from 'url' | ||
const child = spawnSync( | ||
process.execPath, | ||
[ | ||
'--loader', | ||
'ts-node/esm/transpile-only', | ||
fileURLToPath(new URL('./dev.ts', import.meta.url)), | ||
...process.argv.slice(2), | ||
], | ||
['--loader', 'ts-node/esm/transpile-only', import.meta.resolve('./dev.ts'), ...process.argv.slice(2)], | ||
{ stdio: 'inherit' }, | ||
) | ||
if (child.status) process.exit(child.status) |
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
Oops, something went wrong.