147 lines
5.1 KiB
JSON
147 lines
5.1 KiB
JSON
{
|
|
"name": "dexie",
|
|
"version": "4.3.0",
|
|
"description": "A Minimalistic Wrapper for IndexedDB",
|
|
"main": "dist/dexie.js",
|
|
"module": "dist/dexie.mjs",
|
|
"jsnext:main": "dist/dexie.mjs",
|
|
"exports": {
|
|
".": {
|
|
"production": {
|
|
"module": "./import-wrapper-prod.mjs",
|
|
"import": "./import-wrapper-prod.mjs",
|
|
"require": "./dist/dexie.min.js",
|
|
"default": "./dist/dexie.min.js"
|
|
},
|
|
"development": {
|
|
"module": "./import-wrapper.mjs",
|
|
"import": "./import-wrapper.mjs",
|
|
"require": "./dist/dexie.js",
|
|
"default": "./dist/dexie.js"
|
|
},
|
|
"default": {
|
|
"module": "./import-wrapper.mjs",
|
|
"import": "./import-wrapper.mjs",
|
|
"require": "./dist/dexie.js",
|
|
"default": "./dist/dexie.js"
|
|
}
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./dist/*": "./dist/*"
|
|
},
|
|
"typings": "dist/dexie.d.ts",
|
|
"jspm": {
|
|
"format": "cjs",
|
|
"ignore": [
|
|
"src/"
|
|
]
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/dexie/Dexie.js.git"
|
|
},
|
|
"keywords": [
|
|
"indexeddb",
|
|
"browser",
|
|
"database"
|
|
],
|
|
"author": "David Fahlander <https://github.com/dfahlander>",
|
|
"contributors": [
|
|
"Christopher Hunt <https://github.com/chrahunt>",
|
|
"Nikolas Poniros <https://github.com/nponiros>",
|
|
"Anders Ekdahl <https://github.com/andersekdahl>",
|
|
"Yury Solovyov <https://github.com/YurySolovyov>",
|
|
"Martin Diphoorn <https://github.com/martindiphoorn>"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/dexie/Dexie.js/issues"
|
|
},
|
|
"just-build": {
|
|
"default": [
|
|
"# Build all targets (es5, es6 and test) and minify the default es5 UMD module",
|
|
"just-build release test"
|
|
],
|
|
"dexie": [
|
|
"# Build dist/dexie.js, dist/dexie.mjs and dist/dexie.d.ts",
|
|
"cd src",
|
|
"tsc [--watch 'Watching for file changes']",
|
|
"tsc --target es2021 --outdir ../tools/tmp/modern/src/",
|
|
"rollup -c ../tools/build-configs/rollup.config.mjs",
|
|
"rollup -c ../tools/build-configs/rollup.umd.config.mjs",
|
|
"rollup -c ../tools/build-configs/rollup.modern.config.mjs",
|
|
"node ../tools/replaceVersionAndDate.js ../dist/dexie.js",
|
|
"node ../tools/replaceVersionAndDate.js ../dist/dexie.mjs",
|
|
"node ../tools/replaceVersionAndDate.js ../dist/modern/dexie.mjs",
|
|
"dts-bundle-generator --inline-declare-global --inline-declare-externals --no-check -o ../dist/dexie.d.ts public/index.d.ts",
|
|
"node ../tools/fix-dts-duplicates.js ../dist/dexie.d.ts",
|
|
"node ../tools/prepend.js ../dist/dexie.d.ts ../tools/build-configs/banner.txt",
|
|
"node ../tools/replaceVersionAndDate.js ../dist/dexie.d.ts"
|
|
],
|
|
"release": [
|
|
"# Build ES5 umd module as well as the es6 module.",
|
|
"just-build dexie",
|
|
"node tools/replaceVersionAndDate.js dist/dexie.d.ts",
|
|
"# Minify the default ES5 UMD module",
|
|
"cd dist",
|
|
"uglifyjs dexie.js -m -c negate_iife=0 -o dexie.min.js --source-map url=dexie.min.js.map",
|
|
"# Minify modern bundle",
|
|
"cd modern",
|
|
"terser --comments false --compress --mangle --module --source-map url=dexie.min.mjs.map -o dexie.min.mjs -- dexie.mjs"
|
|
],
|
|
"dev": [
|
|
"# Build ES5 module and the tests",
|
|
"just-build dexie test"
|
|
],
|
|
"gzip": [
|
|
"# Optionally gzip to find the size of the minified & gzipped version",
|
|
"gzip dist/dexie.min.js -k -f -9"
|
|
],
|
|
"test": [
|
|
"# Build the test suite.",
|
|
"cd test",
|
|
"tsc [--watch 'Watching for file changes']",
|
|
"rollup -c ../tools/build-configs/rollup.tests.config.mjs"
|
|
]
|
|
},
|
|
"homepage": "https://dexie.org",
|
|
"devDependencies": {
|
|
"@lambdatest/node-tunnel": "^4.0.7",
|
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
"cross-env": "^10.1.0",
|
|
"dts-bundle-generator": "^9.5.1",
|
|
"just-build": "^0.9.24",
|
|
"karma": "^6.1.1",
|
|
"karma-chrome-launcher": "^3.1.0",
|
|
"karma-firefox-launcher": "^2.1.0",
|
|
"karma-mocha-reporter": "^2.2.5",
|
|
"karma-qunit": "^4.1.1",
|
|
"karma-webdriver-launcher": "^1.0.8",
|
|
"qunit": "2.10.0",
|
|
"qunitjs": "1.23.1",
|
|
"rollup": "^4.53.3",
|
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
"rxjs": "^7.8.2",
|
|
"safari-14-idb-fix": "^3.0.0",
|
|
"serve-static": "^2.2.0",
|
|
"sorted-json": "^0.3.0",
|
|
"terser": "^5.3.1",
|
|
"tslib": "^2.1.0",
|
|
"typescript": "^5.6.3",
|
|
"uglify-js": "^3.9.2",
|
|
"yjs": "^13.6.27"
|
|
},
|
|
"scripts": {
|
|
"build": "just-build",
|
|
"watch": "just-build --watch",
|
|
"clean": "rm -rf tools/tmp && rm dist/*.js && rm dist/*.map && rm dist/*.ts && rm dist/*.mjs",
|
|
"test": "pnpm run build && pnpm run test:typings && pnpm run test:unit",
|
|
"test:unit": "karma start test/karma.conf.js --single-run",
|
|
"test:typings": "tsc -p test/typings-test/",
|
|
"test:debug": "karma start test/karma.conf.js --log-level debug",
|
|
"test:ltcloud": "cross-env LAMBDATEST=true pnpm run test:ltTunnel & sleep 10 && pnpm run test:unit; UNIT_STATUS=$?; kill $(cat tunnel.pid); exit $UNIT_STATUS",
|
|
"test:ltTunnel": "node test/lt-local"
|
|
}
|
|
} |