Skip to content

Commit

Permalink
feat(config-tools): Added esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Apr 13, 2024
1 parent 26b8b38 commit fd9dbda
Show file tree
Hide file tree
Showing 5 changed files with 400 additions and 700 deletions.
3 changes: 2 additions & 1 deletion packages/config-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"url": "https://github.com/storm-software/storm-ops",
"directory": "packages/config-tools"
},
"main": "./index.js",
"main": "./index.cjs",
"module": "./index.js",
"types": "declarations.d.ts",
"dependencies": {
"c12": "^1.10.0",
Expand Down
7 changes: 1 addition & 6 deletions packages/config-tools/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@
"skipTypeCheck": false,
"metafile": true,
"minify": false,
"format": ["cjs"],
"esbuildOptions": {
"outExtension": {
".js": ".js"
}
},
"format": ["cjs", "esm"],
"assets": [
{
"input": "./packages/config-tools",
Expand Down
12 changes: 3 additions & 9 deletions packages/config-tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
"outDir": "../../dist/out-tsc",
"module": "commonjs"
},
"include": [
"**/*"
],
"exclude": [
"jest.config.ts",
"src/**/*.spec.ts",
"src/**/*.test.ts"
]
}
"include": ["**/*"],
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
}
6 changes: 2 additions & 4 deletions packages/config/presets/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"timezone": "America/New_York",
"locale": "en-US",
"logLevel": "debug",
"externalPackagePatterns": [
"@storm-software/"
],
"externalPackagePatterns": ["@storm-software/"],
"colors": {
"primary": "#1fb2a6",
"dark": "#1d232a",
Expand All @@ -26,4 +24,4 @@
"stacktrace": true
}
}
}
}
Loading

0 comments on commit fd9dbda

Please sign in to comment.