Skip to content

Commit

Permalink
Update to match new packaging format
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Jan 19, 2024
1 parent cdad076 commit 7da74bc
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 23 deletions.
7 changes: 5 additions & 2 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"presets": ["@babel/preset-env"]
}
"presets": [
["@babel/preset-env", { "modules": false, "targets": { "node": "current" } }],
"@babel/preset-typescript"
]
}
12 changes: 4 additions & 8 deletions nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
"env": {
"NODE_ENV": "development"
},
"exec": "node -r ts-node/register ./src/index.ts",
"exec": "ts-node-script ./src/index.ts",
"ext": ".ts",
"ignore": [
"**/*.spec.ts"
],
"watch": [
"./src"
]
}
"ignore": ["**/*.spec.ts"],
"watch": ["./src"]
}
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,26 @@
"node": {
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.mjs"
"default": "./dist/node/index.js"
},
"require": {
"types": "./dist/node/index.d.ts",
"default": "./dist/node/index.js"
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
}
}
},
"./package.json": "./package.json"
},
"main": "dist/node/index.js",
"module": "dist/node/index.mjs",
"types": "dist/node/index.d.ts",
"main": "dist/node/index.cjs",
"module": "dist/node/index.js",
"types": "dist/node/index.d.cts",
"scripts": {
"deploy": "echo Deploy not allowed!",
"deploy3": "echo Deploy3 not allowed!",
"launch": "node --max-old-space-size=8192 --experimental-specifier-resolution=node ./dist/node/index.js",
"start": "nodemon",
"start-cjs": "node ./dist/node/index.cjs",
"start-esm": "node ./dist/node/index.js",
"test": "jest --no-cache --forceExit",
"test:ci": "jest --runInBand --coverage --forceExit --passWithNoTests"
},
Expand All @@ -53,6 +55,7 @@
"devDependencies": {
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.5",
"@types/source-map-support": "0.5.10",
Expand All @@ -77,11 +80,11 @@
"packageManager": "[email protected]",
"private": true,
"engines": {
"node": ">=18.17 <19"
"node": ">=20.10.0 <21"
},
"volta": {
"node": "18.17.1",
"node": "20.10.0",
"yarn": "1.22.19"
},
"type": "commonjs"
"type": "module"
}
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"typeRoots": []
},
"exclude": ["./node_modules", "./**/node_modules", "./dist", "./**/dist", "./**/docs", ".*"],
"extends": "@xylabs/tsconfig",
"include": [
"./src", "./**/src"
],
"ts-node": {
"compilerOptions": {
"module": "ESNext"
Expand Down
38 changes: 34 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-create-class-features-plugin@npm:^7.22.15":
"@babel/helper-create-class-features-plugin@npm:^7.22.15, @babel/helper-create-class-features-plugin@npm:^7.23.6":
version: 7.23.7
resolution: "@babel/helper-create-class-features-plugin@npm:7.23.7"
dependencies:
Expand Down Expand Up @@ -921,7 +921,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-validator-option@npm:^7.23.5":
"@babel/helper-validator-option@npm:^7.22.15, @babel/helper-validator-option@npm:^7.23.5":
version: 7.23.5
resolution: "@babel/helper-validator-option@npm:7.23.5"
checksum: 537cde2330a8aede223552510e8a13e9c1c8798afee3757995a7d4acae564124fe2bf7e7c3d90d62d3657434a74340a274b3b3b1c6f17e9a2be1f48af29cb09e
Expand Down Expand Up @@ -1125,7 +1125,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-syntax-jsx@npm:^7.7.2":
"@babel/plugin-syntax-jsx@npm:^7.23.3, @babel/plugin-syntax-jsx@npm:^7.7.2":
version: 7.23.3
resolution: "@babel/plugin-syntax-jsx@npm:7.23.3"
dependencies:
Expand Down Expand Up @@ -1224,7 +1224,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-syntax-typescript@npm:^7.7.2":
"@babel/plugin-syntax-typescript@npm:^7.23.3, @babel/plugin-syntax-typescript@npm:^7.7.2":
version: 7.23.3
resolution: "@babel/plugin-syntax-typescript@npm:7.23.3"
dependencies:
Expand Down Expand Up @@ -1780,6 +1780,20 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-transform-typescript@npm:^7.23.3":
version: 7.23.6
resolution: "@babel/plugin-transform-typescript@npm:7.23.6"
dependencies:
"@babel/helper-annotate-as-pure": "npm:^7.22.5"
"@babel/helper-create-class-features-plugin": "npm:^7.23.6"
"@babel/helper-plugin-utils": "npm:^7.22.5"
"@babel/plugin-syntax-typescript": "npm:^7.23.3"
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: a816811129f3fcb0af1aeb52b84285be390ed8a0eedab17d31fa8e6847c4ca39b4b176d44831f20a8561b3f586974053570ad7bdfa51f89566276e6b191786d2
languageName: node
linkType: hard

"@babel/plugin-transform-unicode-escapes@npm:^7.23.3":
version: 7.23.3
resolution: "@babel/plugin-transform-unicode-escapes@npm:7.23.3"
Expand Down Expand Up @@ -1930,6 +1944,21 @@ __metadata:
languageName: node
linkType: hard

"@babel/preset-typescript@npm:^7.23.3":
version: 7.23.3
resolution: "@babel/preset-typescript@npm:7.23.3"
dependencies:
"@babel/helper-plugin-utils": "npm:^7.22.5"
"@babel/helper-validator-option": "npm:^7.22.15"
"@babel/plugin-syntax-jsx": "npm:^7.23.3"
"@babel/plugin-transform-modules-commonjs": "npm:^7.23.3"
"@babel/plugin-transform-typescript": "npm:^7.23.3"
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: c4add0f3fcbb3f4a305c48db9ccb32694f1308ed9971ccbc1a8a3c76d5a13726addb3c667958092287d7aa080186c5c83dbfefa55eacf94657e6cde39e172848
languageName: node
linkType: hard

"@babel/regjsgen@npm:^0.8.0":
version: 0.8.0
resolution: "@babel/regjsgen@npm:0.8.0"
Expand Down Expand Up @@ -4648,6 +4677,7 @@ __metadata:
"@aws-sdk/client-secrets-manager": "npm:^3.495.0"
"@babel/core": "npm:^7.23.7"
"@babel/preset-env": "npm:^7.23.8"
"@babel/preset-typescript": "npm:^7.23.3"
"@types/jest": "npm:^29.5.11"
"@types/node": "npm:^20.11.5"
"@types/source-map-support": "npm:0.5.10"
Expand Down

0 comments on commit 7da74bc

Please sign in to comment.