Compare commits

...

2 commits

Author SHA1 Message Date
Alan Bridgeman
b6650c2e32 Merge branch 'main' of https://git.bridgemanaccessible.ca/Bridgeman-Accessible/ba-web-framework
Some checks failed
Publish to Private NPM Registry / publish (push) Failing after 43s
2026-01-06 21:25:02 -06:00
Alan Bridgeman
d4f0f2a6b0 Attempted to modify package.json to work properly with ESM 2026-01-06 21:23:52 -06:00
2 changed files with 24 additions and 1 deletions

View file

@ -46,6 +46,9 @@ jobs:
# Transpile/Build the package (TypeScript -> JavaScript)
- name: Transpile/Build the package (TypeScript -> JavaScript)
run: |
# Because Yarn is used locally better to install and use it than have to debug weird inconsistencies
npm install --global yarn
# Install needed dependencies
yarn install

View file

@ -5,7 +5,27 @@
"author": "Bridgeman Accessible <info@bridgemanaccessible.ca>",
"repository": "https://git.bridgemanaccessible.ca/Bridgeman-Accessible/ba-web-framework.git",
"license": "MIT",
"main": "./index.ts",
"type": "module",
"main": "./index.js",
"types": "./index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./middlewares": {
"types": "./middlewares/index.d.ts",
"default": "./middlewares/index.js"
},
"./decorators": {
"types": "./decorators/index.d.ts",
"default": "./decorators/index.js"
},
"./controllers": {
"types": "./controllers/index.d.ts",
"default": "./controllers/index.js"
}
},
"scripts": {
"clean": "rm -rf dist",
"build": "tsc",