-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
78 lines (78 loc) · 3.28 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
{
"name": "root",
"private": true,
"workspaces": [
"packages/geoprocessing",
"packages/base-project",
"packages/template-blank-project"
],
"license": "BSD-3-Clause",
"devDependencies": {
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/plugin-syntax-import-attributes": "^7.25.6",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@eslint/js": "^9.9.1",
"@types/fs-extra": "^11.0.4",
"@types/react": "^18.3.5",
"@types/request": "^2.48.12",
"babel-plugin-i18next-extract": "0.10.0",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-i18next": "^6.0.9",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.2",
"eslint-plugin-unicorn": "^55.0.0",
"fs-extra": "^11.2.0",
"globals": "^15.9.0",
"http-server": "^14.1.1",
"husky": "^9.1.5",
"lerna": "^8.1.8",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"start-server-and-test": "^2.0.5",
"styled-components": "^6.1.13",
"tsx": "^4.19.0",
"typescript-eslint": "^8.4.0",
"vitest": "^2.0.5"
},
"engines": {
"node": ">=20.0.0",
"npm": ">=10.0.0"
},
"scripts": {
"clean": "git clean -fdx",
"test": "lerna run test",
"lint:eslint": "eslint --fix",
"lint:prettier": "prettier --write --ignore-unknown .",
"publish:experimental:canary": "BRANCH_NAME=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`; if [ $BRANCH_NAME != \"dev\" -a $BRANCH_NAME != \"main\" ] ; then CI=1 lerna publish --force-publish --canary --preid experimental-${BRANCH_NAME} --dist-tag=experimental-${BRANCH_NAME} ; fi",
"publish:alpha": "CI=1 lerna publish --force-publish --preid alpha --dist-tag=alpha",
"publish:beta": "CI=1 lerna publish --force-publish --preid beta --dist-tag=beta",
"publish:stable": "CI=1 lerna publish",
"publish:backport": "CI=1 lerna publish --preid backport --dist-tag=backport",
"prepare": "husky",
"prepublish": "npm test && lerna run --scope=@seasketch/geoprocessing prepare",
"publish:translation": "npx tsx packages/geoprocessing/src/i18n/bin/publishTerms.ts",
"import:translation": "npx tsx packages/geoprocessing/src/i18n/bin/importTerms.ts",
"sync:translation": "npm run extract:translation && npm run publish:translation && npm run import:translation",
"extract:translation": "rm -rf packages/geoprocessing/src/i18n/lang/en && mkdir -p packages/geoprocessing/src/i18n/lang/en && NODE_ENV=development npx babel 'packages/geoprocessing/src/**/*.{ts,tsx}' 'packages/template-blank-project/src/**/*.{ts,tsx}' 'packages/template-ocean-eez/src/**/*.{ts,tsx}' > /dev/null && mv extractedTranslations/en packages/geoprocessing/src/i18n/lang && rm -rf extractedTranslations && echo 'Translations extracted to packages/geoprocessing/src/i18n/lang/en'"
},
"lint-staged": {
"**/*.{js,mjs,cjs,ts,jsx,tsx}": [
"eslint --fix"
],
"*": "prettier --write --ignore-unknown"
},
"repository": {
"type": "git",
"url": "git+https://github.com/seasketch/geoprocessing.git"
},
"homepage": "https://github.com/seasketch/geoprocessing/#readme",
"bugs": {
"url": "https://github.com/seasketch/geoprocessing/issues"
}
}