Skip to content

Commit

Permalink
Upgrade tooling libs
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrttn authored Jan 17, 2024
2 parents df8101d + a3f1fa4 commit 0e709d2
Show file tree
Hide file tree
Showing 58 changed files with 765 additions and 600 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/* eslint-disable max-len */
module.exports = {
extends: ['transloadit', 'prettier', 'plugin:@typescript-eslint/recommended'],
extends: [
'transloadit',
'prettier',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/stylistic',
],
parser: '@typescript-eslint/parser',
plugins: ['node', 'prefer-import', 'promise', '@typescript-eslint'],
settings: {
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"printWidth": 100,
"semi": false,
"singleQuote": true,
"jsxSingleQuote": false
"jsxSingleQuote": false,
"plugins": ["prettier-plugin-packagejson"]
}
12 changes: 6 additions & 6 deletions .vscode/monolib.code-workspace
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {}
"folders": [
{
"path": "..",
},
],
"settings": {},
}
57 changes: 31 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@
"workspaces": [
"packages/*"
],
"packageManager": "[email protected]+sha224.ca5d6f5a8aecd0801adc32f775675b01961bdc2383867d36f4732a0a",
"engines": {
"node": ">= 18",
"yarn": "4.0.1"
},
"scripts": {
"pub": "npm-run-all test lernaPublish",
"lernaPublish": "lerna publish",
"new": "sucrase-node new.ts",
"fix": "DEBUG=eslint:cli-engine eslint . --ext .js,.jsx,.ts,.tsx --fix && yarn fix:formatting",
"lint": "DEBUG=eslint:cli-engine eslint . --ext .js,.jsx,.ts,.tsx && yarn lint:formatting",
"build": "lerna run tsc",
"test:watch": "node -r sucrase/register --test --watch packages/**/*.test.ts",
"test": "node -r sucrase/register --test packages/**/*.test.ts",
"check": "npm-run-all build lint test",
"fix": "yarn fix:js && yarn fix:formatting",
"fix:formatting": "prettier --write .",
"lint:formatting": "prettier --check ."
"fix:js": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"lernaPublish": "lerna publish",
"lint": "run-p lint:formatting lint:js && yarn lint:ts",
"lint:formatting": "prettier --check .",
"lint:js": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:ts": "lerna run tsc",
"new": "sucrase-node new.ts",
"pub": "npm-run-all test lernaPublish",
"test": "node -r sucrase/register --test packages/**/*.test.ts",
"test:watch": "node -r sucrase/register --test --watch packages/**/*.test.ts"
},
"dependencies": {
"execa": "5.0.0",
Expand All @@ -30,25 +28,32 @@
},
"devDependencies": {
"@types/node": "^18.18.13",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.8.0",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-transloadit": "^3.0.0-0",
"eslint-import-resolver-typescript": "^3.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-import": "^0.0.1",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-transloadit": "^0.2.0",
"fakefile": "1.0.0",
"lerna": "^8.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.6",
"sucrase": "^3.25.0",
"typescript": "^5.3.2"
"prettier": "^3.2.4",
"prettier-plugin-packagejson": "^2.4.9",
"sucrase": "^3.35.0",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]+sha224.ca5d6f5a8aecd0801adc32f775675b01961bdc2383867d36f4732a0a",
"engines": {
"node": ">= 18",
"yarn": "4.0.1"
}
}
20 changes: 10 additions & 10 deletions packages/abbr/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@transloadit/abbr",
"license": "AGPL-3.0-only",
"publishConfig": {
"access": "public"
},
"version": "0.3.0",
"repository": {
"type": "git",
"url": "git://github.com/transloadit/monolib.git",
"directory": "packages/abbr"
},
"license": "AGPL-3.0-only",
"main": "dist/abbr.js",
"types": "dist/abbr.d.ts",
"files": [
"dist"
],
"directories": {
"lib": "dist",
"test": "dist"
},
"files": [
"dist"
],
"scripts": {
"tsc": "tsc --build --clean && tsc --build",
"test": "echo \"Error: run tests from root\" && exit 1"
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc --build --clean && tsc --build"
},
"publishConfig": {
"access": "public"
},
"version": "0.3.0",
"gitHead": "714bbf75e54490ceb20bea49a728230668d456c1"
}
4 changes: 2 additions & 2 deletions packages/abbr/src/abbr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ describe('abbr', () => {
test('main', async () => {
assert.strictEqual(
abbr(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. '
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',
),
'Lorem ipsum dolor sit ame[...] et dolore magna aliqua. '
'Lorem ipsum dolor sit ame[...] et dolore magna aliqua. ',
)
assert.strictEqual(abbr('Lorem ipsum dolor sit amet', 10, ' .. '), 'Lor .. met')
})
Expand Down
2 changes: 1 addition & 1 deletion packages/abbr/src/abbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export = function abbr(str: string, maxLength = 55, divider = `[...]`): string {
const firstLen = Math.ceil((maxLength - divider.length) / 2)
const lastLen = Math.floor((maxLength - divider.length) / 2)
abbreviated = `${abbreviated.substr(0, firstLen)}${divider}${abbreviated.substr(
abbreviated.length - lastLen
abbreviated.length - lastLen,
)}`
}

Expand Down
4 changes: 2 additions & 2 deletions packages/abbr/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"rootDir": "src/"
"rootDir": "src/",
},
"include": ["src/"]
"include": ["src/"],
}
24 changes: 12 additions & 12 deletions packages/analyze-step/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{
"name": "@transloadit/analyze-step",
"license": "AGPL-3.0-only",
"publishConfig": {
"access": "public"
},
"version": "0.3.0",
"repository": {
"type": "git",
"url": "git://github.com/transloadit/monolib.git",
"directory": "packages/analyze-step"
},
"license": "AGPL-3.0-only",
"main": "dist/analyzeStep.js",
"types": "dist/analyzeStep.d.ts",
"files": [
"dist"
],
"directories": {
"lib": "dist",
"test": "dist"
},
"files": [
"dist"
],
"scripts": {
"tsc": "tsc --build --clean && tsc --build",
"test": "echo \"Error: run tests from root\" && exit 1"
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc --build --clean && tsc --build"
},
"dependencies": {
"@transloadit/format-duration-ms": "^0.3.0",
Expand All @@ -29,10 +27,12 @@
"jsonpath-plus": "^7.2.0",
"lodash": "^4.17.21"
},
"version": "0.3.0",
"gitHead": "714bbf75e54490ceb20bea49a728230668d456c1",
"devDependencies": {
"@types/jsonpath": "^0.2.4",
"@types/lodash": "^4.14.202"
}
},
"publishConfig": {
"access": "public"
},
"gitHead": "714bbf75e54490ceb20bea49a728230668d456c1"
}
Loading

0 comments on commit 0e709d2

Please sign in to comment.