Skip to content

Commit

Permalink
Merge pull request #1302 from pixiv/chore/remove-downlevel-dts
Browse files Browse the repository at this point in the history
BREAKING: chore: remove downlevel-dts
  • Loading branch information
yue4u authored Jun 10, 2024
2 parents d415d53 + a1167dd commit b141ca1
Show file tree
Hide file tree
Showing 106 changed files with 126 additions and 236 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/packages/*/docs/
/packages/*/lib/
/packages/*/node_modules/
/packages/*/ts*/
/packages/*/types/
!/packages/types-*/types/

jest.config.js
1 change: 0 additions & 1 deletion .github/workflows/inspect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
path: |
packages/*/lib/
packages/*/types/
packages/*/ts*/
lint:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ jobs:
path: |
packages/*/lib/
packages/*/types/
packages/*/ts*/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
/packages/*/node_modules
/packages/*/docs
/packages/*/lib
/packages/*/ts*/
/packages/*/types
/tmp
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"cross-env": "^7.0.2",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.21.3",
"eslint": "8",
"eslint-config-mdcs": "^5.0.0",
Expand Down
12 changes: 2 additions & 10 deletions packages/three-vrm-animation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm-animation.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs/ lib/ ts*/ types/",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
"lint-examples": "eslint \"examples/**/*.{ts,tsx,js,html}\" --rule \"padded-blocks: error\"",
Expand Down
12 changes: 2 additions & 10 deletions packages/three-vrm-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm-core.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs/ lib/ ts*/ types/",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
"build-types": "tsc --project ./tsconfig.build-types.json",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"test": "jest",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
Expand Down
11 changes: 11 additions & 0 deletions packages/three-vrm-core/tsconfig.build-types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "./types",
"emitDeclarationOnly": true
},
"exclude": [
"**/tests/**"
]
}
12 changes: 2 additions & 10 deletions packages/three-vrm-materials-hdr-emissive-multiplier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm-materials-hdr-emissive-multiplier.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs/ lib/ ts*/ types/",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
"lint-examples": "eslint \"examples/**/*.{js,html}\" --rule \"padded-blocks: error\"",
Expand Down
12 changes: 2 additions & 10 deletions packages/three-vrm-materials-mtoon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm-materials-mtoon.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs/ lib/ ts*/ types/",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
"lint-examples": "eslint \"examples/**/*.{js,html}\" --rule \"padded-blocks: error\"",
Expand Down
12 changes: 2 additions & 10 deletions packages/three-vrm-materials-v0compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm-materials-v0compat.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs/ lib/ ts*/ types/",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --project ./tsconfig.build-types.json && downlevel-dts types ts3.4/types",
"build-types": "tsc --project ./tsconfig.build-types.json",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"lint": "eslint \"src/**/*.{ts,tsx}\" && prettier \"src/**/*.{ts,tsx}\" --check",
"lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix && prettier \"src/**/*.{ts,tsx}\" --write"
Expand Down
12 changes: 2 additions & 10 deletions packages/three-vrm-node-constraint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm-node-constraint.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn test && yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs/ lib/ ts*/ types/",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --project ./tsconfig.build-types.json && downlevel-dts types ts3.4/types",
"build-types": "tsc --project ./tsconfig.build-types.json",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"test": "jest",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
Expand Down
12 changes: 2 additions & 10 deletions packages/three-vrm-springbone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm-springbone.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs/ lib/ ts*/ types/",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
"build-types": "tsc --project ./tsconfig.build-types.json",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"test": "jest",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
Expand Down
11 changes: 11 additions & 0 deletions packages/three-vrm-springbone/tsconfig.build-types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "./types",
"emitDeclarationOnly": true
},
"exclude": [
"**/tests/**"
]
}
12 changes: 2 additions & 10 deletions packages/three-vrm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@
"author": "pixiv",
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"type": "module",
"main": "lib/three-vrm.module.js",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -37,12 +29,12 @@
"version": "yarn all",
"all": "yarn test && yarn lint && yarn clean && yarn build && yarn docs",
"dev": "cross-env SERVE=1 yarn build-dev",
"clean": "rimraf docs lib ts*/ types",
"clean": "rimraf docs/ lib/ types/",
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-js": "node ../../bin/build.mjs",
"build-dev": "cross-env NODE_ENV=development yarn build-js",
"build-prod": "cross-env NODE_ENV=production yarn build-js",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"test": "echo There is no test for three-vrm",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
Expand Down
1 change: 1 addition & 0 deletions packages/types-vrm-0.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!types
20 changes: 6 additions & 14 deletions packages/types-vrm-0.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@
"license": "MIT",
"author": "pixiv",
"files": [
"/ts*/",
"/types/",
"LICENSE"
],
"main": "",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"repository": {
"type": "git",
"url": "https://github.com/pixiv/three-vrm.git",
Expand All @@ -26,14 +18,14 @@
"scripts": {
"version": "yarn all",
"all": "yarn lint && yarn clean && yarn build && yarn docs",
"clean": "rimraf docs/ ts*/ types/",
"build": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"lint": "eslint \"src/**/*.{ts,tsx}\" && prettier \"src/**/*.{ts,tsx}\" --check",
"lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix && prettier \"src/**/*.{ts,tsx}\" --write"
"clean": "rimraf docs/",
"build": "tsc --declaration --declarationDir ./types --emitDeclarationOnly",
"docs": "typedoc --entryPoints ./types/index.d.ts --out docs",
"lint": "eslint \"types/**/*.{ts,tsx}\" && prettier \"types/**/*.{ts,tsx}\" --check",
"lint-fix": "eslint \"types/**/*.{ts,tsx}\" --fix && prettier \"types/**/*.{ts,tsx}\" --write"
},
"lint-staged": {
"./src/**/*.{ts,tsx}": [
"./types/**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
Expand Down
Loading

0 comments on commit b141ca1

Please sign in to comment.