UNPKG

budoux

Version:
81 lines (80 loc) 3.31 kB
{ "name": "budoux", "version": "0.7.0", "description": "A small chunk segmenter.", "author": "Shuhei Iitsuka", "license": "Apache-2.0", "repository": { "type": "git", "url": "https://github.com/google/budoux.git", "directory": "javascript" }, "main": "./dist/index.js", "module": "./module/index.js", "exports": { ".": { "import": "./module/index.js", "require": "./dist/index.js" } }, "browser": { "./dist/dom.js": "./dist/dom-browser.js", "./module/dom.js": "./module/dom-browser.js", "./dist/tests/testutils.js": "./dist/tests/testutils-browser.js", "./module/tests/testutils.js": "./module/tests/testutils-browser.js" }, "bin": { "budoux": "./bin/budoux.js" }, "sideEffects": [ "./module/webcomponents/*", "./module/tests/*" ], "scripts": { "build": "npm run build:esm && npm run build:cjs", "build:cjs": "tsc && cp -r src/tests/models/ dist/tests/models/", "build:esm": "tsc --outDir module --module ES2020 && cp -r src/tests/models/ module/tests/models/", "bundle": "npm run bundle:webcomponents && npm run bundle:test", "bundle:test": "esbuild module/tests/index.browser.js --bundle --sourcemap --outfile=bundle/tests/index.browser.js", "bundle:webcomponents": "npm run bundle:webcomponents:ja && npm run bundle:webcomponents:zh-hans && npm run bundle:webcomponents:zh-hant && npm run bundle:webcomponents:th", "bundle:webcomponents:ja": "esbuild module/webcomponents/budoux-ja.js --bundle --minify --sourcemap --outfile=bundle/budoux-ja.min.js", "bundle:webcomponents:zh-hans": "esbuild module/webcomponents/budoux-zh-hans.js --bundle --minify --sourcemap --outfile=bundle/budoux-zh-hans.min.js", "bundle:webcomponents:zh-hant": "esbuild module/webcomponents/budoux-zh-hant.js --bundle --minify --sourcemap --outfile=bundle/budoux-zh-hant.min.js", "bundle:webcomponents:th": "esbuild module/webcomponents/budoux-th.js --bundle --minify --sourcemap --outfile=bundle/budoux-th.min.js", "clean": "rm -rf dist module src/data", "copy": "node ./scripts/copy-data.js", "prebuild": "npm run clean && npm run copy", "prepare": "npm run clean && npm run copy && npm run build && npm run bundle", "pretest": "npm run build && npm run bundle:test", "test": "npm run test:jasmine && npm run test:karma && npm run test:cli-version", "test:cli-version": "node ./scripts/check-cli-version.js", "test:jasmine": "jasmine dist/tests/index.node.js", "test:karma": "karma start", "lint": "eslint src/** --no-error-on-unmatched-pattern", "fix": "eslint src/** --no-error-on-unmatched-pattern --fix" }, "devDependencies": { "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.9.0", "@types/jasmine": "^5.1.0", "@types/node": "^22.0.0", "@typescript-eslint/eslint-plugin": "^8.0.1", "esbuild": "^0.25.0", "eslint": "^9.9.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-prettier": "^5.0.0", "jasmine": "^5.0.2", "jasmine-core": "^5.0.1", "karma": "^6.4.2", "karma-chrome-launcher": "^3.2.0", "karma-jasmine": "^5.1.0", "typescript": "^5.1.6" }, "dependencies": { "commander": "^13.0.0", "linkedom": "^0.18.7" }, "overrides": { "tough-cookie": "^5.0.0-rc.4" } }