Upgrade dependencies
This commit is contained in:
parent
66fb5ff085
commit
45a6f59f8c
@ -11,7 +11,7 @@
|
||||
],
|
||||
"ignorePatterns": ["vite.config.ts", "scripts"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": ["@typescript-eslint", "require-extensions"],
|
||||
"plugins": ["@typescript-eslint", "require-extensions", "tree-shaking"],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module",
|
||||
@ -24,6 +24,15 @@
|
||||
{
|
||||
"argsIgnorePattern": "^_"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tree-shaking/no-side-effects-in-initialization": ["error"]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["tests/**/*"],
|
||||
"rules": {
|
||||
"tree-shaking/no-side-effects-in-initialization": ["off"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
4
.github/workflows/_test.yml
vendored
4
.github/workflows/_test.yml
vendored
@ -6,12 +6,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
# https://playwright.dev/docs/ci#via-containers
|
||||
container:
|
||||
image: mcr.microsoft.com/playwright:v1.36.0-jammy
|
||||
image: mcr.microsoft.com/playwright:v1.42.1-jammy
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 20
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm test
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
# [Unreleased]
|
||||
|
||||
- Keep identify names in built code bundle
|
||||
|
||||
# 3.0.0-beta.0
|
||||
|
||||
- Make the bundle a valid ESM page
|
||||
|
||||
9882
package-lock.json
generated
9882
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
29
package.json
29
package.json
@ -7,6 +7,7 @@
|
||||
"main": "./dist/parchment.js",
|
||||
"types": "./dist/parchment.d.ts",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"files": [
|
||||
"tsconfig.json",
|
||||
"dist",
|
||||
@ -16,19 +17,20 @@
|
||||
"@arethetypeswrong/cli": "^0.15.1",
|
||||
"@microsoft/api-extractor": "^7.42.3",
|
||||
"@types/node": "^18.15.11",
|
||||
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
||||
"@typescript-eslint/parser": "^6.2.0",
|
||||
"@vitest/browser": "^0.33.0",
|
||||
"del-cli": "^5.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
||||
"@typescript-eslint/parser": "^7.2.0",
|
||||
"@vitest/browser": "^1.4.0",
|
||||
"del-cli": "^5.1.0",
|
||||
"eslint": "^8.46.0",
|
||||
"eslint-config-prettier": "^8.9.0",
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-require-extensions": "^0.1.3",
|
||||
"playwright": "^1.36.2",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.1.6",
|
||||
"vite": "^4.4.7",
|
||||
"vitest": "^0.33.0"
|
||||
"eslint-plugin-tree-shaking": "^1.12.1",
|
||||
"playwright": "1.42.1",
|
||||
"prettier": "^3.2.5",
|
||||
"typescript": "^5.4.2",
|
||||
"vite": "^5.1.6",
|
||||
"vitest": "^1.4.0"
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true
|
||||
@ -41,9 +43,8 @@
|
||||
"build:types": "tsc --emitDeclarationOnly && api-extractor run && del-cli dist/typings",
|
||||
"lint": "eslint 'src/**/*.ts' 'tests/**/*.ts'",
|
||||
"prepare": "npm run build",
|
||||
"test": "npm run test:unit && npm run test:types",
|
||||
"test:unit": "vitest",
|
||||
"test:types": "vitest typecheck",
|
||||
"test": "npm run test:unit",
|
||||
"test:unit": "vitest --typecheck",
|
||||
"test:pkg": "attw $(npm pack)"
|
||||
},
|
||||
"bugs": {
|
||||
|
||||
@ -119,8 +119,8 @@ export default class Registry implements RegistryInterface {
|
||||
const key = isBlot
|
||||
? definition.blotName
|
||||
: isAttr
|
||||
? definition.attrName
|
||||
: (undefined as never); // already handled by above checks
|
||||
? definition.attrName
|
||||
: (undefined as never); // already handled by above checks
|
||||
this.types[key] = definition;
|
||||
|
||||
if (isAttr) {
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"declaration": true,
|
||||
"declarationDir": "./dist/typings",
|
||||
"strict": true,
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "Bundler",
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"verbatimModuleSyntax": true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user