Global-Conflicts-ArmA / global-conflicts-website

3 stars 4 forks source link

Nested Hell #20

Open bluefieldcreator opened 1 week ago

bluefieldcreator commented 1 week ago

While exploring the repository, the file middleware/check_auth_perms.ts picked my interest.

This can most definetively be decoupled into individual functions as well as optimizing and making the code more readable.

PR's welcome?

PiZZAD0X commented 1 week ago

PRs welcome

bluefieldcreator commented 1 week ago

Here's a few issues ive noted:

After running this set of scripts;

# Clear Cache
rm -rf node_modules
npm cache clean --force

# Update core definitions
yarn install --save-dev @types/node
yarn install --save-dev @types/babel__core
yarn install --save-dev @types/eslint

# Update version mismatches
yarn install @babel/traverse@7.23.9
yarn install postcss-selector-parser@6.0.2
yarn install eslint@8.x
yarn install typescript@4.x

# Resolution of Peer Dependencies
yarn install --legacy-peer-deps

# Add specific missing types
yarn install --save-dev @types/babel__traverse
yarn install --save-dev @types/postcss
yarn install --save-dev @types/eslint-scope

# Rebuild
yarn install
yarn run build

I managed to get most of the dependencies working - but still failing to build. image