diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 1e83bb0..ed7545a 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -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 diff --git a/package.json b/package.json index 20a7d22..3ef698c 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,31 @@ { "name": "@BridgemanAccessible/ba-web-framework", - "version": "1.0.32", + "version": "1.0.33", "description": "A framework for web apps built atop Node, Express and other libraries and utilties that makes creating and maintaining Bridgeman Accessible web apps easier.", "author": "Bridgeman Accessible ", "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",