Skip to content

Commit

Permalink
#1404 Fix internalBinding('errors') with moduleResolution: bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
thekingofcity committed Apr 8, 2024
1 parent a92036c commit 01cfb7d
Show file tree
Hide file tree
Showing 10 changed files with 338 additions and 1,646 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/issuebot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
token: ${{ secrets.RMG_BUILD_AND_RELEASE }}
fetch-depth: 0 # Fetch all to get authors of every template.

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '20'

Expand Down Expand Up @@ -132,27 +132,3 @@ jobs:
state: 'closed',
state_reason: 'not_planned'
});
updateIssueIfSometingWentWrong:
runs-on: ubuntu-latest
needs: updateGallery
if: ${{ failure() && needs.updateGallery.outputs.sanityCheck == '' }}
steps:
- name: Comment if failed
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
We apologize, there may be some technical issues here. You do not need to take any action, please wait for our administrators to take care of it. Thank you for your contribution.
- name: Add labels
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const labelsToAdd = ['resources', 'bug'];
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: labelsToAdd
});
95 changes: 0 additions & 95 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"license": "GPL-3.0-only",
"type": "module",
"dependencies": {
"@actions/core": "^1.10.1",
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { JSDOM } from 'jsdom';
import { EOL, homedir } from 'os';
import { resolve } from 'path';
import { parse } from 'zipson';
import { Metadata, MetadataDetail } from './constants.js';
import { Metadata, MetadataDetail } from './constants';

export const RES_PATH = ['..', 'public', 'resources'];

Expand Down
4 changes: 2 additions & 2 deletions scripts/housekeep.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile, unlink } from 'fs/promises';
import { resolve } from 'path';
import { RES_PATH, rebuildTypeJSON } from './common.js';
import { Metadata } from './constants.js';
import { RES_PATH, rebuildTypeJSON } from './common.ts';
import { Metadata } from './constants.ts';

export const housekeep = async () => {
const fantasyFile = await readFile(resolve(...RES_PATH, 'fantasy.json'), 'utf-8');
Expand Down
6 changes: 3 additions & 3 deletions scripts/issuebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { mkdir, readFile, writeFile } from 'fs/promises';
import { homedir } from 'os';
import { resolve } from 'path';

import { parseDetailsEl, readIssueBody, rebuildTypeJSON } from './common.js';
import { Metadata, MetadataDetail } from './constants.js';
import { makeImage, makeThumbnail } from './images.js';
import { parseDetailsEl, readIssueBody, rebuildTypeJSON } from './common.ts';
import { Metadata, MetadataDetail } from './constants.ts';
import { makeImage, makeThumbnail } from './images.ts';

const makeMetadataWithUpdateHistory = async (
cityName: string,
Expand Down
Loading

0 comments on commit 01cfb7d

Please sign in to comment.