-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpackage.json
156 lines (156 loc) · 9.16 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "talkie",
"description": "Text-to-speech (TTS) browser extension button.",
"version": "8.0.0",
"author": {
"email": "[email protected]",
"name": "Joel Purra",
"url": "https://joelpurra.com/"
},
"bugs": "https://joelpurra.com/support/",
"devDependencies": {
"@reduxjs/toolkit": "^1.9.7",
"@rollup/plugin-beep": "^1.0.3",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^5.0.7",
"@sindresorhus/tsconfig": "^6.0.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react-redux": "^7.1.34",
"@types/redux-logger": "^3.0.13",
"@types/webextension-polyfill": "^0.12.1",
"eslint-config-joelpurra": "github:joelpurra/eslint-config-joelpurra#semver:^v15.0.0",
"husky": "^4.3.8",
"json": "^11.0.0",
"lerna": "^8.1.8",
"merge-options": "^3.0.4",
"mkdirp": "^3.0.1",
"npm-check-updates": "^17.1.4",
"nx": "^20.0.3",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^9.0.1",
"react-redux": "^7.2.9",
"redux-logger": "^3.0.6",
"rimraf": "^6.0.1",
"rollup": "^3.29.5",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-license": "^3.5.3",
"rollup-plugin-visualizer": "^5.12.0",
"styletron-engine-atomic": "^1.6.2",
"styletron-react": "^6.1.1",
"styletron-standard": "^3.1.0",
"syncpack": "^13.0.0",
"tslib": "^2.8.0",
"type-fest": "^4.26.1",
"typescript": "^5.6.3",
"web-ext": "^8.3.0",
"xo": "^0.56.0"
},
"engines": {
"node": "^20.0.0"
},
"homepage": "https://joelpurra.com/projects/talkie/",
"husky": {
"hooks": {
"pre-commit": "npm run --silent test"
}
},
"keywords": [
"browser",
"extension",
"text-to-speech",
"tts",
"webext"
],
"license": "GPL-3.0",
"private": true,
"repository": "joelpurra/talkie.git",
"scripts": {
"build": "npm run --silent build:lerna",
"build:debug": "npm run --silent build:lerna -- --verbose",
"build:lerna": "lerna run build",
"clean": "rimraf ./dist && npm run --silent clean:typescript && npm run --silent clean:lerna",
"clean:lerna": "lerna run clean",
"clean:typescript": "rimraf tsconfig.tsbuildinfo",
"dependencies:check": "npm run --silent dependencies:check:syncpack && npm run --silent dependencies:check:ncu && npm run --silent dependencies:upgrade:lerna",
"dependencies:check:ncu": "ncu --jsonUpgraded",
"dependencies:check:syncpack": "syncpack list ; syncpack list-mismatches ; syncpack lint-semver-ranges",
"dependencies:upgrade": "npm run --silent dependencies:upgrade:syncpack && npm run --silent dependencies:upgrade:ncu && npm run --silent dependencies:upgrade:syncpack",
"dependencies:upgrade:lerna": "lerna repair",
"dependencies:upgrade:ncu": "ncu --upgrade",
"dependencies:upgrade:syncpack": "syncpack fix-mismatches",
"lint": "npm run --silent lint:full",
"lint:copyright": "grep -L 'This file is part of Talkie' $(find packages -type f \\( -not -ipath '*/node_modules/*' -and -not -ipath '*/dist/*' \\) -and \\( -iname '*.ts' -or -iname '*.tsx' -or -iname '*.cts' -or -iname '*.mts' -or -iname '*.cts' -or -iname '*.mjs' -or -iname '*.cjs' -or -iname '*.html' \\)) | sed 's/^/File is missing copyright notice: /'",
"lint:fast": "npm run --silent lint:xo && npm run --silent lint:copyright",
"lint:fix": "npm run --silent lint:xo:fix && npm run --silent lint:syncpack:fix && npm run --silent lint:prettier:fix",
"lint:full": "npm run --silent lint:fast && npm run --silent lint:slow",
"lint:prettier": "prettier --list-different \"./**/*.json\" \"../**/*.md\" \"./build/*.mjs\" \"./packages/*/*.mjs\" \"./packages/*/src/**/*.mjs\" || { echo \"Prettier needs to format the above files. Try 'npm run --silent lint:fix'.\" && exit 1; }",
"lint:prettier:fix": "prettier --write \"./**/*.json\" \"../**/*.md\" \"./build/*.mjs\" \"./packages/*/*.mjs\" \"./packages/*/src/**/*.mjs\"",
"lint:slow": "npm run --silent lint:typescript:type-check && npm run --silent lint:prettier && lerna run lint",
"lint:syncpack:fix": "syncpack format",
"lint:typescript:type-check": "tsc --noEmit",
"lint:xo": "xo",
"lint:xo:fix": "xo --fix",
"mode:force:development": "node --eval 'if(process.env.TALKIE_ENV !== \"development\"){console.error(`TALKIE_ENV is required to be \"development\", but is actually \"${process.env.TALKIE_ENV}\".`);process.exit(1);}'",
"mode:force:development-or-production": "node --eval 'const allowed=[\"development\",\"production\"];if(!allowed.includes(process.env.TALKIE_ENV)){console.error(`TALKIE_ENV is required to be one of ${JSON.stringify(allowed,null,0)}, but is actually \"${process.env.TALKIE_ENV}\".`);process.exit(1);}'",
"mode:force:production": "node --eval 'if(process.env.TALKIE_ENV !== \"production\"){console.error(`TALKIE_ENV is required to be \"production\", but is actually \"${process.env.TALKIE_ENV}\".`);process.exit(1);}'",
"output": "lerna run output && npm run --silent output:source && npm run --silent output:list",
"output:list": "lerna run output:list && ls -l *.zip ./packages/*/dist/publish/*.zip",
"output:source": "( cd .. && pwd && git archive --format zip -9 --output ./code/talkie-joelpurra.com-$(cd ./code && npm run --silent version:get:head)-source.zip HEAD :/ && cd - >/dev/null ; )",
"preoutput": "npm run --silent mode:force:development-or-production && npm run --silent rebuild && npm run --silent test && npm run --silent lint && ( cd packages/shared-locales && npm run --silent messages:count ; )",
"rebuild": "npm run --silent clean && npm run --silent reconstruct && npm run --silent build",
"reconstruct": "npm run --silent reconstruct:project-references && npm run --silent reconstruct:lerna:graphs && npm run --silent reconstruct:nx:graphs && npm run --silent reconstruct:lerna",
"reconstruct:lerna": "lerna run reconstruct",
"reconstruct:lerna:graphs": "mkdirp ./dist/graph && lerna list --all --graph --toposort > ./dist/graph/lerna.packages.json",
"reconstruct:nx:graphs": "mkdirp ./dist/graph && nx graph --file ./dist/graph/nx.graph.json && nx graph --file ./dist/graph/nx.graph.html",
"reconstruct:project-references": "./build/update-project-references.sh && npm run --silent lint:syncpack:fix",
"test": "npm run --silent lint:fast",
"version:get:head": "git describe --always --dirty --long --match 'v*'",
"version:get:release": "git rev-parse --abbrev-ref HEAD | sed -n -e '/release/ s_release/v_v_ p'",
"version:update": "export TALKIE_RELEASE_VERSION=$(npm run --silent version:get:release | sed -e 's/^v//') && git diff-index --quiet HEAD -- && npm run --silent version:update:file -- manifest.json && npm run --silent version:update-name:file -- manifest.json && npm run --silent version:update:file -- package.json && npm run --silent version:update:file -- package-lock.json && npm run --silent version:update-root-package:file -- package-lock.json && npm run --silent lint:fix && git add manifest.json package.json package-lock.json && git commit -m \"v${TALKIE_RELEASE_VERSION}\"",
"version:update-name:file": "json -Ie \"this.version_name='v' + this.version + ' MANIFEST_VERSION_NAME_TYPE (' + new Date().toISOString().substring(0,10) + ')'\" -f",
"version:update-root-package:file": "json -Ie \"this.packages[\\\"\\\"].version=this.version\" -f",
"version:update:file": "json -Ie \"this.version='${TALKIE_RELEASE_VERSION}'\" -f",
"watch": "echo 'TODO: build watching for the entire project has been disabled until output file filtering works better.' >&2 && exit 1",
"watch:lerna": "lerna watch --concurrency '1' --ignore '@talkie/output-webext-*' --",
"watch:lerna:build": "npm run --silent watch:lerna -- lerna run --scope '$LERNA_PACKAGE_NAME' --include-dependents build",
"watch:lerna:debug": "npm run --silent watch:lerna -- echo '${LERNA_PACKAGE_NAME} ${LERNA_FILE_CHANGES}\\\\n' | sed --unbuffered 's/ /\\n/g' | sed --regexp-extended '/^(@|$)/ ! s/^/\\t/'"
},
"type": "module",
"workspaces": [
"./packages/all-renderer/",
"./packages/browser-background/",
"./packages/browser-bricks/",
"./packages/browser-groundwork/",
"./packages/browser-localeredirect/",
"./packages/browser-mason/",
"./packages/browser-offscreen/",
"./packages/browser-runtime-dependencies/",
"./packages/browser-serviceworker/",
"./packages/browser-shared/",
"./packages/options-application/",
"./packages/options-renderer/",
"./packages/output-webext-chrome/",
"./packages/output-webext-webextension/",
"./packages/output-webext/",
"./packages/popup-application/",
"./packages/popup-renderer/",
"./packages/renderer/",
"./packages/shared-application-helpers/",
"./packages/shared-application/",
"./packages/shared-interfaces/",
"./packages/shared-locales/",
"./packages/shared-resources/",
"./packages/shared-ui/",
"./packages/split-environment-interfaces/",
"./packages/split-environment-node/",
"./packages/split-environment-webextension/",
"./packages/translator-tool/"
]
}