Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
>=20.x
>=22.x
7,822 changes: 4,508 additions & 3,314 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"engines": {
"node": ">=20.x"
"node": ">=24"
},
"workspaces": [
"packages/*"
Expand All @@ -16,12 +16,12 @@
"fix:styles": "prettier --write ."
},
"devDependencies": {
"eslint": "^9.25.0",
"eslint-plugin-prettier": "^5.2.6",
"globals": "^16.0.0",
"lerna": "^8.2.2",
"prettier": "^3.5.3",
"typescript": "^5.8.3"
"eslint": "^9.39.2",
"eslint-plugin-prettier": "^5.5.5",
"globals": "^17.0.0",
"lerna": "^9.0.3",
"prettier": "^3.8.0",
"typescript": "^5.9.3"
},
"type": "module"
}
4 changes: 2 additions & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"access": "public"
},
"engines": {
"node": ">=20.x",
"npm": ">=9.x"
"node": ">=24",
"npm": ">=11.x"
},
"peerDependencies": {
"@babel/runtime": "^7.16"
Expand Down
1 change: 0 additions & 1 deletion packages/config/torus.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
name: "index.js",
umd: true,
libEsm: true,
libCjs: true,
analyzerMode: "disabled",
Expand Down
22 changes: 11 additions & 11 deletions packages/eslint-config-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@
"eslintconfig"
],
"dependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.25.0",
"@vitest/eslint-plugin": "^1.1.43",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.6",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@vitest/eslint-plugin": "^1.6.6",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"globals": "^16.0.0"
"globals": "^17.0.0"
},
"peerDependencies": {
"eslint": "^9.x",
"prettier": "^3.x"
},
"devDependencies": {
"eslint": "^9.25.0",
"prettier": "^3.5.3"
"eslint": "^9.39.2",
"prettier": "^3.8.0"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.x",
"npm": ">=9.x"
"node": ">=24",
"npm": ">=11.x"
},
"author": "Torus Labs",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions packages/eslint-config-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
],
"dependencies": {
"@toruslabs/eslint-config-typescript": "^4.1.4",
"eslint-plugin-n": "^17.17.0",
"eslint-plugin-n": "^17.23.2",
"eslint-plugin-security": "^3.0.1",
"globals": "^16.0.0"
"globals": "^17.0.0"
},
"peerDependencies": {
"eslint": "^9.x"
},
"devDependencies": {
"eslint": "^9.25.0"
"eslint": "^9.39.2"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.x",
"npm": ">=9.x"
"node": ">=24",
"npm": ">=11.x"
},
"author": "Torus Labs",
"license": "MIT",
Expand Down
24 changes: 12 additions & 12 deletions packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@
"eslintconfig"
],
"dependencies": {
"@eslint/compat": "^1.2.8",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.25.0",
"@eslint/compat": "^2.0.1",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@toruslabs/eslint-config-typescript": "^4.1.4",
"@typescript-eslint/parser": "^8.30.1",
"@typescript-eslint/parser": "^8.53.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-tailwindcss": "^3.18.0",
"globals": "^16.0.0"
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-tailwindcss": "^3.18.2",
"globals": "^17.0.0"
},
"peerDependencies": {
"eslint": "^9.x",
"prettier": "^3.x",
"typescript": "^5.x"
},
"devDependencies": {
"eslint": "^9.25.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3"
"eslint": "^9.39.2",
"prettier": "^3.8.0",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.x",
"npm": ">=9.x"
"node": ">=24",
"npm": ">=11.x"
},
"author": "Torus Labs",
"license": "MIT",
Expand Down
34 changes: 17 additions & 17 deletions packages/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@
"eslintconfig"
],
"dependencies": {
"@eslint/compat": "^1.2.8",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.25.0",
"@typescript-eslint/parser": "^8.30.1",
"@vitest/eslint-plugin": "^1.1.43",
"eslint-config-prettier": "^10.1.2",
"eslint-import-resolver-typescript": "^4.3.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.6",
"@eslint/compat": "^2.0.1",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@typescript-eslint/parser": "^8.53.1",
"@vitest/eslint-plugin": "^1.6.6",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-tsdoc": "^0.4.0",
"globals": "^16.0.0",
"typescript-eslint": "^8.30.1"
"eslint-plugin-tsdoc": "^0.5.0",
"globals": "^17.0.0",
"typescript-eslint": "^8.53.1"
},
"peerDependencies": {
"eslint": "^9.x",
"prettier": "^3.x",
"typescript": "^5.x"
},
"devDependencies": {
"eslint": "^9.25.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3"
"eslint": "^9.39.2",
"prettier": "^3.8.0",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.x",
"npm": ">=9.x"
"node": ">=24",
"npm": ">=11.x"
},
"author": "Torus Labs",
"license": "MIT",
Expand Down
22 changes: 11 additions & 11 deletions packages/eslint-config-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@
"vue"
],
"dependencies": {
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
"@intlify/eslint-plugin-vue-i18n": "^4.1.1",
"@toruslabs/eslint-config-typescript": "^4.1.4",
"@vue/eslint-config-typescript": "^14.5.0",
"eslint-plugin-tailwindcss": "^3.18.0",
"eslint-plugin-vue": "^10.0.0",
"globals": "^16.0.0",
"vue-eslint-parser": "^10.1.3"
"@vue/eslint-config-typescript": "^14.6.0",
"eslint-plugin-tailwindcss": "^3.18.2",
"eslint-plugin-vue": "^10.7.0",
"globals": "^17.0.0",
"vue-eslint-parser": "^10.2.0"
},
"peerDependencies": {
"eslint": "^9.x",
"prettier": "^3.x",
"typescript": "^5.x"
},
"devDependencies": {
"eslint": "^9.25.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3"
"eslint": "^9.39.2",
"prettier": "^3.8.0",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.x",
"npm": ">=9.x"
"node": ">=24",
"npm": ">=11.x"
},
"author": "Torus Labs",
"license": "MIT",
Expand Down
3 changes: 0 additions & 3 deletions packages/torus-scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ The build is produced in the following formats depending on the options specifie

- `lib.esm` - Built using rollup. (partial rollup config can be specified in `rollup.config.js` at project root)
- `lib.cjs` - Built using rollup. (partial rollup config can be specified in `rollup.config.js` at project root)
- `umd` - Built using webpack. (partial webpack config can be specified in `webpack.config.js` at project root)

### torus-scripts start

Expand All @@ -227,7 +226,6 @@ The dev server build is produced in the following formats depending on the optio

- `lib.esm` - Built using rollup. (partial rollup config can be specified in `rollup.config.js` at project root)
- `lib.cjs` - Built using rollup. (partial rollup config can be specified in `rollup.config.js` at project root)
- `umd` - Built using webpack. (partial webpack config can be specified in `webpack.config.js` at project root)

you can use npm folder links to install this to any other project and
watch it live updated as you change code in your torus-scripts project
Expand Down Expand Up @@ -261,4 +259,3 @@ you're recommended to add `prepack` command to build before calling release
- tsconfig files must be extending tsconfig.default.json and import the default config from @toruslabs/config
- Add include (`["src", "test"]`), outDir, declarationDir in imported files of tsconfig.json
- If repo also includes tests, add tsconfig.build.json and in that, `include` must contain `src` only.
- Start by default doesn't build umd anymore. To build umd, set`umd` to true in torus.config.js
4 changes: 2 additions & 2 deletions packages/torus-scripts/bin/torus-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ if (parsedArgs.help) {
process.exit(0);
}

const scriptIndex = args.findIndex((x) => x === "build" || x === "start" || x === "release");
const scriptIndex = args.findIndex((x) => x === "build" || x === "start" || x === "release" || x === "lint");

const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
const nodeEnv = ["build", "release"].includes(script) ? "production" : "development";

if (["build", "start", "release"].includes(script)) {
if (["build", "start", "release", "lint"].includes(script)) {
const result = spawn.sync(process.execPath, nodeArgs.concat(resolveFileUrl("../scripts/" + script + ".js")).concat(args.slice(scriptIndex + 1)), {
stdio: "inherit",
env: {
Expand Down
2 changes: 0 additions & 2 deletions packages/torus-scripts/config/torus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ defaultConfig.browserslistrc =

defaultConfig.name = generatePackageName(pkg.name);

defaultConfig.umd = process.env.NODE_ENV === "production";

const userConfig = await readFile(paths.appTorusConfig);

export default merge(defaultConfig, userConfig.default || {});
Loading
Loading