Attempted to modify package.json to work properly with ESM
This commit is contained in:
parent
159599c777
commit
d4f0f2a6b0
2 changed files with 25 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
24
package.json
24
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 <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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue