Commit f9a3db2e authored by Aral Balkan's avatar Aral Balkan
Browse files

Add build/test tasks for minified distribution target

parent 751f9229
......@@ -25,8 +25,10 @@
"scripts": {
"test": "node test/index.js | npx tap-spec",
"test-dist": "node test/dist.js | npx tap-spec",
"test-dist-minified": "node test/dist-minified.js | npx tap-spec",
"coverage": "npx c8 --exclude='lib/LineByLine.js' --exclude='test/**' node test/index.js | npx tap-nyc",
"build": "npx esbuild index.js --bundle --platform=node --format=esm --outfile=dist/index.js"
"build": "npx esbuild index.js --bundle --platform=node --format=esm --outfile=dist/jsdb.js",
"build-minified": "npx esbuild index.js --bundle --minify --platform=node --format=esm --outfile=dist/jsdb.min.js"
},
"funding": {
"type": "foundation",
......
This diff is collapsed.
......@@ -13,7 +13,7 @@
process.env['QUIET'] = true
import test from 'tape'
import JSDB from '../dist/index.js'
import JSDB from '../dist/jsdb.js'
import fs from 'fs'
import path from 'path'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment