Skip to content

Commit

Permalink
Refactor Build Tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Apr 28, 2024
1 parent 7fd3602 commit 49924f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hammer.mjs
Expand Up @@ -61,8 +61,8 @@ export async function build(target = 'target/build') {
await clean()
await Promise.all([
Build.Package.build(target),
Build.Import.build(target),
Build.Require.build(target),
Build.Esm.build(target),
Build.Cjs.build(target),
])
await folder(target).add('readme.md')
await folder(target).add('license')
Expand Down
4 changes: 2 additions & 2 deletions task/build/index.ts
Expand Up @@ -26,6 +26,6 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/

export * as Import from './esm/build'
export * as Require from './cjs/build'
export * as Package from './package/build'
export * as Esm from './esm/build'
export * as Cjs from './cjs/build'
2 changes: 1 addition & 1 deletion task/build/package/create-package-json.ts
Expand Up @@ -89,7 +89,7 @@ function resolveMetadata() {
author: packageJson.author,
license: packageJson.license,
repository: packageJson.repository,
// flagged by socket.dev
// flagged by socket.dev if not present
scripts: { test: 'echo test' },
// disable auto bundle strategy: see https://github.com/esm-dev/esm.sh#bundling-strategy
'esm.sh': { 'bundle': false },
Expand Down

0 comments on commit 49924f7

Please sign in to comment.