@ttoss/cloudformation 0.8.3 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -186,6 +186,7 @@ var readObjectFile = ({
186
186
  if (extension === "ts") {
187
187
  __require("ts-node").register({
188
188
  compilerOptions: {
189
+ moduleResolution: "node",
189
190
  module: "commonjs"
190
191
  },
191
192
  moduleTypes: {
package/dist/index.js CHANGED
@@ -223,6 +223,7 @@ var readObjectFile = ({
223
223
  if (extension === "ts") {
224
224
  require("ts-node").register({
225
225
  compilerOptions: {
226
+ moduleResolution: "node",
226
227
  module: "commonjs"
227
228
  },
228
229
  moduleTypes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/cloudformation",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "CloudFormation utils.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -28,8 +28,8 @@
28
28
  "@types/node": "^20.10.0",
29
29
  "jest": "^29.7.0",
30
30
  "tsup": "^8.0.1",
31
- "@ttoss/config": "^1.31.2",
32
- "@ttoss/test-utils": "^2.0.1"
31
+ "@ttoss/config": "^1.31.3",
32
+ "@ttoss/test-utils": "^2.0.2"
33
33
  },
34
34
  "keywords": [],
35
35
  "publishConfig": {
@@ -16,12 +16,13 @@ export const readObjectFile = ({ path }: { path: string }) => {
16
16
 
17
17
  if (extension === 'ts') {
18
18
  require('ts-node').register({
19
- compilerOptions: { module: 'commonjs' },
19
+ compilerOptions: { moduleResolution: 'node', module: 'commonjs' },
20
20
  moduleTypes: {
21
21
  'carlin.*': 'cjs',
22
22
  },
23
23
  transpileOnly: true,
24
24
  });
25
+
25
26
  const tsObj = require(path);
26
27
  const obj = tsObj.default || tsObj;
27
28
  return typeof obj === 'function' ? obj() : obj;