Skip to content

Commit

Permalink
fix(bundle): issue with wasm not being included in bundle from editor…
Browse files Browse the repository at this point in the history
…config package
  • Loading branch information
Jamie-BitFlight committed Oct 4, 2023
1 parent 7af30a0 commit 855acde
Show file tree
Hide file tree
Showing 37 changed files with 2,033 additions and 152,876 deletions.
23 changes: 23 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"projectName": "github-action-readme-generator",
"projectOwner": "bitflight-devops",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": true,
"contributors": [{
"login": "Jamie-BitFlight",
"name": "Jamie Nelson",
"avatar_url": "https://avatars.githubusercontent.com/u/25075504?v=4",
"profile": "https://bitflight.io",
"contributions": [
"code",
"doc",
"ideas",
"test"
]
}]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ lib/
node_modules/
jest.config.ts
.gulpfile.js
esbuild.js
27 changes: 21 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,27 @@ module.exports = {
files: ['*.yml', '*.yaml'],
extends: [pp],
},
{
files: ['*.mjs'],
extends: ['airbnb-base', 'eslint:recommended', pp],
parser: '@babel/eslint-parser',
env: { es2022: true, node: true },
parserOptions: {
requireConfigFile: false,
sourceType: 'script',
ecmaVersion: 'latest',
ecmaFeatures: {
impliedStrict: true,
},
},
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['*.js', '*.cjs', '*.jsx'],
plugins: ['editorconfig'],
extends: ['airbnb-base', 'eslint:recommended', 'plugin:editorconfig/all', pp],

extends: ['airbnb-base', 'eslint:recommended', pp],
rules: {
'no-plusplus': 'off',
'unicorn/prefer-module': 'off',
Expand All @@ -38,8 +55,8 @@ module.exports = {
},
{
files: ['*.html', '*.json'],
plugins: ['editorconfig'],
extends: ['plugin:editorconfig/all', pp],

extends: [pp],
rules: {
'no-plusplus': 'off',
},
Expand All @@ -65,14 +82,12 @@ module.exports = {
'jest-async',
'@typescript-eslint',
'optimize-regex',
'editorconfig',
'promise',
],
extends: [
'plugin:promise/recommended',
'plugin:no-use-extend-native/recommended',
'plugin:jest/recommended',
'plugin:editorconfig/all',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'airbnb-base',
Expand Down
62 changes: 0 additions & 62 deletions .eslintrc.js.old

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yarn-error.log*
lerna-debug.log*
junit.xml
.yarn/install-state.gz
/dist
/out
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
/.env
Expand Down
6 changes: 5 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
package-lock=false
//registry.npmjs.org/:_authToken=${NPM_TOKEN:-}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
bitflight-devops:registry=https://registry.npmjs.org/
always-auth=true
merge-git-branch-lockfiles-branch-pattern[]=main
merge-git-branch-lockfiles-branch-pattern[]=release*
use-node-version=20.7.0
node-version=20.7.0
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist/
lib/
out/
node_modules/
**/.vscode
**/.vs
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = {
{
files: ['**/*.yml', '**/*.yaml'],
options: {
printWidth: 1000,
singleQuote: false,
printWidth: 100,
parser: 'yaml',
},
},
Expand Down
1 change: 1 addition & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
23 changes: 14 additions & 9 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,32 @@ runtimes:
- [email protected]
- [email protected]
actions:
disabled:
- git-lfs
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
enabled:
- trunk-cache-prune
- trunk-upgrade-available
plugins:
sources:
- id: trunk
ref: v0.0.5
ref: v1.2.1
uri: https://github.com/trunk-io/plugins
cli:
version: 1.0.1
version: 1.16.1
lint:
disabled:
- git-diff-check
enabled:
- cspell@6.12.0
- [email protected].21
- eslint@8.25.0
- gitleaks@8.15.0
- markdownlint@0.32.2
- prettier@2.7.1
- shellcheck@0.8.0
- cspell@7.3.6
- [email protected].26
- eslint@8.50.0
- gitleaks@8.18.0
- markdownlint@0.37.0
- prettier@3.0.3
- shellcheck@0.9.0
- [email protected]
ignore:
- linters: [ALL]
Expand Down
Binary file modified .yarn/install-state.gz
Binary file not shown.
783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.2.cjs

This file was deleted.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.3.cjs

Large diffs are not rendered by default.

34 changes: 19 additions & 15 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ changesetBaseRefs:
- upstream/main

changesetIgnorePatterns:
- '**/*.test.{js,ts}'
- "**/*.test.{js,ts}"
- packages/*/tests/**
- .yarn/cache/**

Expand All @@ -17,33 +17,37 @@ enableGlobalCache: false
enableMirror: true

nmMode: hardlinks-local

nodeLinker: node-modules

npmAlwaysAuth: true
npmRegistryServer: https://registry.yarnpkg.com

npmRegistries:
'https://registry.yarnpkg.com':
npmAuthToken: ${NPM_TOKEN:-${NPM_AUTH_TOKEN:-}}
"https://registry.yarnpkg.com":
npmAlwaysAuth: true
npmAuthToken: "${NPM_TOKEN:-${NPM_AUTH_TOKEN:-}}"

npmRegistryServer: "https://registry.yarnpkg.com"

npmScopes:
bitflight-devops:
npmRegistryServer: https://registry.yarnpkg.com
npmAlwaysAuth: true
npmAuthToken: ${NPM_TOKEN:-}

nodeLinker: node-modules
npmAuthToken: "${NPM_TOKEN:-}"
npmRegistryServer: "https://registry.yarnpkg.com"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: '@yarnpkg/plugin-version'
spec: "@yarnpkg/plugin-version"
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: '@yarnpkg/plugin-typescript'
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs
spec: '@yarnpkg/plugin-constraints'
spec: "@yarnpkg/plugin-constraints"
- path: .yarn/plugins/@yarnpkg/plugin-stage.cjs
spec: '@yarnpkg/plugin-stage'
spec: "@yarnpkg/plugin-stage"

supportedArchitectures:
cpu:
Expand All @@ -54,4 +58,4 @@ supportedArchitectures:
- linux
- win32

yarnPath: .yarn/releases/yarn-3.2.2.cjs
yarnPath: .yarn/releases/yarn-3.6.3.cjs
12 changes: 6 additions & 6 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ describe('test required environment variables', () => {
// GitHub workspace
// GitHub workspace
// GitHub workspace
process.env['GHADOCS_OWNER'] = 'bitflight-devops';
process.env['GHADOCS_REPOSITORY'] = 'github-action-readme-generator';
process.env.GHADOCS_OWNER = 'bitflight-devops';
process.env.GHADOCS_REPOSITORY = 'github-action-readme-generator';
});
beforeEach(() => {
// Reset inputs
});
afterAll(() => {
// Restore GitHub workspace
delete process.env['GHADOCS_REPOSITORY'];
delete process.env['GHADOCS_OWNER'];
delete process.env.GHADOCS_REPOSITORY;
delete process.env.GHADOCS_OWNER;
// Restore
jest.restoreAllMocks();
});

it('Check Env Vars', () => {
expect(process.env['GHADOCS_OWNER']).toEqual('bitflight-devops');
expect(process.env['GHADOCS_REPOSITORY']).toEqual('github-action-readme-generator');
expect(process.env.GHADOCS_OWNER).toEqual('bitflight-devops');
expect(process.env.GHADOCS_REPOSITORY).toEqual('github-action-readme-generator');
});
});
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ inputs:
required: false
default: true
runs:
using: 'node16'
main: './dist/index.cjs'
using: 'node20'
main: './dist/index.js'
Loading

0 comments on commit 855acde

Please sign in to comment.