Skip to content

Commit

Permalink
NORSUB-eMRU: Build to ESM + CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
crisconru committed May 17, 2024
1 parent ab93a03 commit 3ede00d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/norsub-emru/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coremarine/norsub-emru",
"version": "1.0.6",
"version": "1.0.7",
"description": "Library to work with eMRU devices of NorSub company",
"author": "Core Marine",
"license": "MIT",
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"scripts": {
"protocols": "node yaml-to-json.js ./protocols/norsub.yaml ./src/norsub.ts",
"build": "npm run protocols && npm run format && tsc",
"build": "npm run protocols && npm run format && tsup",
"lint": "ts-standard",
"format": "ts-standard --fix",
"test": "npm run protocols && vitest",
Expand Down
11 changes: 11 additions & 0 deletions packages/norsub-emru/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['./src/index.ts'],
clean: true,
format: ['esm', 'cjs'],
minify: false,
dts: true,
splitting: true,
outDir: './dist'
})

0 comments on commit 3ede00d

Please sign in to comment.