mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-15 10:34:03 +02:00
use nested export style for package.json
This commit is contained in:
36
package.json
36
package.json
@@ -28,21 +28,28 @@
|
|||||||
"email": "info@nextapps.de"
|
"email": "info@nextapps.de"
|
||||||
},
|
},
|
||||||
"main": "dist/flexsearch.bundle.min.js",
|
"main": "dist/flexsearch.bundle.min.js",
|
||||||
"exports": {
|
|
||||||
".": "./dist/flexsearch.bundle.min.js",
|
|
||||||
"./lang/*": "./dist/lang/*.min.js",
|
|
||||||
"./db/*": "./dist/db/*/index.cjs",
|
|
||||||
"./esm": "./dist/flexsearch.bundle.module.min.js",
|
|
||||||
"./esm/lang/*": "./dist/module/lang/*.js",
|
|
||||||
"./esm/db/*": "./dist/module/db/*/index.js",
|
|
||||||
"./debug": "./dist/flexsearch.bundle.debug.js",
|
|
||||||
"./debug/lang/*": "./dist/lang/*.min.js",
|
|
||||||
"./debug/db/*": "./dist/db/*/index.cjs",
|
|
||||||
"./esm/debug": "./dist/flexsearch.bundle.module.debug.js",
|
|
||||||
"./esm/debug/lang/*": "./dist/module-debug/lang/*.js",
|
|
||||||
"./esm/debug/db/*": "./dist/module-debug/db/*/index.js"
|
|
||||||
},
|
|
||||||
"module": "dist/flexsearch.bundle.module.min.js",
|
"module": "dist/flexsearch.bundle.module.min.js",
|
||||||
|
"types": "./index.d.ts",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"types": "./index.d.ts",
|
||||||
|
"import": "./dist/flexsearch.bundle.module.min.js",
|
||||||
|
"require": "./dist/flexsearch.bundle.min.js"
|
||||||
|
},
|
||||||
|
"./lang/*": {
|
||||||
|
"import": "./dist/module/lang/*.js",
|
||||||
|
"require": "./dist/lang/*.min.js"
|
||||||
|
},
|
||||||
|
"./db/*": {
|
||||||
|
"import": "./dist/module/db/*/index.js",
|
||||||
|
"require": "./dist/db/*/index.cjs"
|
||||||
|
},
|
||||||
|
"./debug": {
|
||||||
|
"import": "./dist/flexsearch.bundle.module.debug.js",
|
||||||
|
"require": "./dist/flexsearch.bundle.debug.js"
|
||||||
|
},
|
||||||
|
"./esm": "./dist/flexsearch.bundle.module.min.js"
|
||||||
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"flexsearch": "./dist/flexsearch.bundle.module.min.js",
|
"flexsearch": "./dist/flexsearch.bundle.module.min.js",
|
||||||
"flexsearch/esm": "./dist/flexsearch.bundle.module.min.js",
|
"flexsearch/esm": "./dist/flexsearch.bundle.module.min.js",
|
||||||
@@ -57,7 +64,6 @@
|
|||||||
"redis": false,
|
"redis": false,
|
||||||
"sqlite3": false
|
"sqlite3": false
|
||||||
},
|
},
|
||||||
"types": "./index.d.ts",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:bundle && npm run build:bundle:debug",
|
"build": "npm run build:bundle && npm run build:bundle:debug",
|
||||||
"build:bundle": "node task/build RELEASE=bundle DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false",
|
"build:bundle": "node task/build RELEASE=bundle DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false",
|
||||||
|
Reference in New Issue
Block a user