Skip to content

Commit

Permalink
refactor!: remove downlevel-dts
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Jun 6, 2024
1 parent d415d53 commit abe7da1
Show file tree
Hide file tree
Showing 98 changed files with 65 additions and 168 deletions.
9 changes: 1 addition & 8 deletions packages/three-vrm-animation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 @@ -42,7 +35,7 @@
"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
9 changes: 1 addition & 8 deletions packages/three-vrm-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 @@ -42,7 +35,7 @@
"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": "jest",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 @@ -42,7 +35,7 @@
"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",
"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
9 changes: 1 addition & 8 deletions packages/three-vrm-materials-mtoon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 @@ -42,7 +35,7 @@
"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
9 changes: 1 addition & 8 deletions packages/three-vrm-materials-v0compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 @@ -42,7 +35,7 @@
"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
9 changes: 1 addition & 8 deletions packages/three-vrm-node-constraint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 @@ -42,7 +35,7 @@
"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
9 changes: 1 addition & 8 deletions packages/three-vrm-springbone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 @@ -42,7 +35,7 @@
"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": "jest",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
Expand Down
11 changes: 2 additions & 9 deletions packages/three-vrm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"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 +30,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/ ts*/ 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
19 changes: 6 additions & 13 deletions packages/types-vrm-0.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
],
"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 +19,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/ ts*/",
"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
2 changes: 1 addition & 1 deletion packages/types-vrm-0.0/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": [
"./src"
"./types"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!types
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,21 @@
],
"main": "",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"repository": {
"type": "git",
"url": "https://github.com/pixiv/three-vrm.git",
"directory": "packages/types-vrmc-materials-hdr-emissive-multiplier-1.0"
},
"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"
"all": "yarn lint && yarn clean && yarn docs",
"clean": "rimraf docs/ ts*/",
"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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": [
"./src"
"./types"
]
}
1 change: 1 addition & 0 deletions packages/types-vrmc-materials-mtoon-1.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!types
20 changes: 6 additions & 14 deletions packages/types-vrmc-materials-mtoon-1.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,21 @@
],
"main": "",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"repository": {
"type": "git",
"url": "https://github.com/pixiv/three-vrm.git",
"directory": "packages/types-vrmc-materials-mtoon-1.0"
},
"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"
"all": "yarn lint && yarn clean && yarn docs",
"clean": "rimraf docs/ ts*/",
"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
2 changes: 1 addition & 1 deletion packages/types-vrmc-materials-mtoon-1.0/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": [
"./src"
"./types"
]
}
1 change: 1 addition & 0 deletions packages/types-vrmc-node-constraint-1.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!types
20 changes: 6 additions & 14 deletions packages/types-vrmc-node-constraint-1.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,21 @@
],
"main": "",
"types": "types/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"repository": {
"type": "git",
"url": "https://github.com/pixiv/three-vrm.git",
"directory": "packages/types-vrmc-node-constraint-1.0"
},
"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"
"all": "yarn lint && yarn clean && yarn docs",
"clean": "rimraf docs/ ts*/",
"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
2 changes: 1 addition & 1 deletion packages/types-vrmc-node-constraint-1.0/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": [
"./src"
"./types"
]
}
1 change: 1 addition & 0 deletions packages/types-vrmc-springbone-1.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!types
Loading

0 comments on commit abe7da1

Please sign in to comment.