Skip to content

Commit

Permalink
version 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stagas committed Dec 7, 2022
1 parent 39504ae commit 6071afe
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 31 deletions.
19 changes: 17 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,28 @@ module.exports = {
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-inferrable-types': 'warn',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unused-vars': ['error', { args: 'all', argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-loss-of-precision': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
'@typescript-eslint/prefer-as-const': 'off',
'react/jsx-curly-brace-presence': 'off',
'react/jsx-pascal-case': 'off',
'react/jsx-fragments': 'off',
'react/jsx-uses-react': 'off',
'react/jsx-no-target-blank': 'off',
'react/jsx-no-comment-textnodes': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-regex-spaces': 'off',
'no-unexpected-multiline': 'off',
'no-constant-condition': 'off',
'no-cond-assign': 'off',
'no-empty': 'off',
'prefer-spread': 'off',
},
}
4 changes: 2 additions & 2 deletions .pull-configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ merge('package.json', (prev, next) => {
delete prev.devDependencies['terser']
delete prev.devDependencies['vite-web-test-runner-plugin']
delete prev.devDependencies['@swc-node/jest']
delete prev.devDependencies['chokidar']
delete prev.devDependencies['jest']
delete prev.devDependencies['jest-browser-globals']
delete prev.devDependencies['ts-jest']
delete prev.devDependencies['ts-node']
delete prev.devDependencies['wtr-plugin-vite']
delete prev.devDependencies['@stagas/jest-node-exports-resolver']
delete prev.devDependencies['vite-open']
})
replace('.gitattributes')
replace('.gitignore')
Expand All @@ -61,7 +61,7 @@ const deprecated = [
'jest.config.js',
'web-test-runner.config.js',
]
deprecated.forEach(x => {
deprecated.forEach((x) => {
try {
fs.rmSync(x, { recursive: true })
console.log('removed', x)
Expand Down
15 changes: 7 additions & 8 deletions README.md

Large diffs are not rendered by default.

33 changes: 16 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "stagas",
"short": "stagas/match-to-token",
"description": "transform a RegExp named group match to a more useful object",
"version": "3.0.0",
"version": "3.1.0",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -23,26 +23,24 @@
"!**/*.tsbuildinfo"
],
"scripts": {
"start:web": "vite-open example/web --https",
"start:web:debugging": "vite-open example/web --https --debugging-this",
"start:web": "devito example/web",
"start:web:debugging": "devito example/web --debugging-this",
"start:node": "onchange -i src example -- swcno example/node.ts",
"build:watch": "fastpm autolink && tsc -p tsconfig.dist.json --outDir dist/types --watch & swc -w -C module.type=commonjs ./src -d dist/cjs -w & swc -w -C module.type=es6 ./src -d dist/esm",
"build:dist": "npm run build:bundle && npm run build:min",
"cov:watch": "utr --coverage --watch",
"clean": "rimraf dist",
"docs": "dokio -o README.md && dprint fmt README.md",
"test": "npm run test:node && npm run test:web",
"test:node": "if find test -type f -iregex '.*\\.spec\\.\\(js\\|jsx\\|ts\\|tsx\\)$' | grep -q .; then utr 'test/*.spec.{js,jsx,ts,tsx}'; else echo no node tests; fi",
"test:web": "if find test -type f -iregex '.*\\.spec\\.web\\.\\(js\\|jsx\\|ts\\|tsx\\)$' | grep -q .; then utr --browser 'test/*.spec.web.{js,jsx,ts,tsx}'; else echo no web tests; fi",
"docs": "dokio -o README.md",
"test": "utr",
"cov": "utr --coverage",
"build": "npm run build:cjs & npm run build:esm & npm run build:types && echo done.",
"build:cjs": "swc -C module.type=commonjs ./src -d dist/cjs",
"build:esm": "swc -C module.type=es6 ./src -d dist/esm && echo '{\"type\":\"module\"}' >dist/esm/package.json",
"build:types": "tsc -p tsconfig.dist.json --outDir dist/types",
"build:bundle": "bunzee src/index.ts \"dist/$(cat package.json | jq -r '.name').js\"",
"build:min": "bunzee -m src/index.ts \"dist/$(cat package.json | jq -r '.name').min.js\"",
"lint": "eslint src && dprint check",
"lint:fix": "eslint --fix src && dprint fmt",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"prepack": "npm run clean && npm run build && (npm run build:dist || echo unable to bundle)",
"prepack:dry": "npm pack --dry-run",
"prepush": "npm run lint && npm run test",
Expand All @@ -58,27 +56,28 @@
"@swc/cli": "0.1.57",
"@swc/core": "1.2.218",
"@tsconfig/node16": "1.0.3",
"@types/audioworklet": "0.0.29",
"@types/audioworklet": "0.0.30",
"@types/jest": "27.5.2",
"@types/node": "17.0.45",
"@types/webmidi": "2.0.6",
"@typescript-eslint/eslint-plugin": "5.30.7",
"@typescript-eslint/parser": "5.30.7",
"@typescript-eslint/eslint-plugin": "5.31.0",
"@typescript-eslint/parser": "5.31.0",
"bunzee": "^1.0.0",
"dokio": "^0.0.2",
"chokidar": "3.5.3",
"devito": "^2.0.0",
"dokio": "^1.1.0",
"dprint": "0.30.3",
"eslint": "8.20.0",
"eslint-config-html-jsx": "^1.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-react": "7.30.0",
"eslint-plugin-react": "7.30.1",
"husky": "7.0.4",
"onchange": "7.1.0",
"pull-configs": "^0.2.0",
"pull-configs": "^1.0.0",
"rimraf": "3.0.2",
"swcno": "0.1.1",
"typescript": "4.7.3",
"utr": "^0.2.0",
"vite-open": "^2.4.0"
"utr": "^1.3.3"
},
"types": "./dist/types/index.d.ts"
}
1 change: 0 additions & 1 deletion tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"types"
],
"compilerOptions": {
"jsx": "react-jsx",
"types": [
"./types/globals",
"./types/modules",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"incremental": true,
"module": "commonjs",
"target": "esnext",
"jsx": "preserve",
"jsx": "react-jsx",
"strict": true
}
}

0 comments on commit 6071afe

Please sign in to comment.