diff --git a/.eslintignore b/.eslintignore index 83bad778a..32310e0b4 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,7 +1,7 @@ /packages/*/docs/ /packages/*/lib/ /packages/*/node_modules/ -/packages/*/ts*/ /packages/*/types/ +!/packages/types-*/types/ jest.config.js diff --git a/.github/workflows/inspect.yml b/.github/workflows/inspect.yml index 6a5a25c90..05d9ae8d3 100644 --- a/.github/workflows/inspect.yml +++ b/.github/workflows/inspect.yml @@ -56,7 +56,6 @@ jobs: path: | packages/*/lib/ packages/*/types/ - packages/*/ts*/ lint: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 32df32b82..2377ed9c9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -65,4 +65,3 @@ jobs: path: | packages/*/lib/ packages/*/types/ - packages/*/ts*/ diff --git a/.gitignore b/.gitignore index b8aa2a2e5..33ae25315 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,5 @@ /packages/*/node_modules /packages/*/docs /packages/*/lib -/packages/*/ts*/ /packages/*/types /tmp \ No newline at end of file diff --git a/package.json b/package.json index 5c9a15be8..cdb154d5b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/three-vrm-animation/package.json b/packages/three-vrm-animation/package.json index be4e09075..36d81d171 100644 --- a/packages/three-vrm-animation/package.json +++ b/packages/three-vrm-animation/package.json @@ -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", @@ -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\"", diff --git a/packages/three-vrm-core/package.json b/packages/three-vrm-core/package.json index c5f05fe8c..a9dd98b75 100644 --- a/packages/three-vrm-core/package.json +++ b/packages/three-vrm-core/package.json @@ -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", @@ -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", diff --git a/packages/three-vrm-core/tsconfig.build-types.json b/packages/three-vrm-core/tsconfig.build-types.json new file mode 100644 index 000000000..41fbfcab7 --- /dev/null +++ b/packages/three-vrm-core/tsconfig.build-types.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": true, + "declarationDir": "./types", + "emitDeclarationOnly": true + }, + "exclude": [ + "**/tests/**" + ] +} diff --git a/packages/three-vrm-materials-hdr-emissive-multiplier/package.json b/packages/three-vrm-materials-hdr-emissive-multiplier/package.json index c216477af..243a9d364 100644 --- a/packages/three-vrm-materials-hdr-emissive-multiplier/package.json +++ b/packages/three-vrm-materials-hdr-emissive-multiplier/package.json @@ -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", @@ -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\"", diff --git a/packages/three-vrm-materials-mtoon/package.json b/packages/three-vrm-materials-mtoon/package.json index aa47a22a8..d74877d31 100644 --- a/packages/three-vrm-materials-mtoon/package.json +++ b/packages/three-vrm-materials-mtoon/package.json @@ -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", @@ -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\"", diff --git a/packages/three-vrm-materials-v0compat/package.json b/packages/three-vrm-materials-v0compat/package.json index f7227d888..c1f7ab9e7 100644 --- a/packages/three-vrm-materials-v0compat/package.json +++ b/packages/three-vrm-materials-v0compat/package.json @@ -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", @@ -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" diff --git a/packages/three-vrm-node-constraint/package.json b/packages/three-vrm-node-constraint/package.json index e4ef12797..ed3c9f438 100644 --- a/packages/three-vrm-node-constraint/package.json +++ b/packages/three-vrm-node-constraint/package.json @@ -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", @@ -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", diff --git a/packages/three-vrm-springbone/package.json b/packages/three-vrm-springbone/package.json index eeffd8df4..92b4bcb15 100644 --- a/packages/three-vrm-springbone/package.json +++ b/packages/three-vrm-springbone/package.json @@ -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", @@ -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", diff --git a/packages/three-vrm-springbone/tsconfig.build-types.json b/packages/three-vrm-springbone/tsconfig.build-types.json new file mode 100644 index 000000000..41fbfcab7 --- /dev/null +++ b/packages/three-vrm-springbone/tsconfig.build-types.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": true, + "declarationDir": "./types", + "emitDeclarationOnly": true + }, + "exclude": [ + "**/tests/**" + ] +} diff --git a/packages/three-vrm/package.json b/packages/three-vrm/package.json index dedbbe8de..aba2320e5 100644 --- a/packages/three-vrm/package.json +++ b/packages/three-vrm/package.json @@ -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", @@ -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", diff --git a/packages/types-vrm-0.0/.gitignore b/packages/types-vrm-0.0/.gitignore new file mode 100644 index 000000000..072a7430a --- /dev/null +++ b/packages/types-vrm-0.0/.gitignore @@ -0,0 +1 @@ +!types diff --git a/packages/types-vrm-0.0/package.json b/packages/types-vrm-0.0/package.json index 382821b85..1587c244e 100644 --- a/packages/types-vrm-0.0/package.json +++ b/packages/types-vrm-0.0/package.json @@ -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", @@ -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" ] diff --git a/packages/types-vrm-0.0/tsconfig.json b/packages/types-vrm-0.0/tsconfig.json index 5bac6173e..15b9f2152 100644 --- a/packages/types-vrm-0.0/tsconfig.json +++ b/packages/types-vrm-0.0/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", "include": [ - "./src" + "./types" ] } diff --git a/packages/types-vrm-0.0/src/BlendShape.ts b/packages/types-vrm-0.0/types/BlendShape.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/BlendShape.ts rename to packages/types-vrm-0.0/types/BlendShape.d.ts diff --git a/packages/types-vrm-0.0/src/BlendShapeBind.ts b/packages/types-vrm-0.0/types/BlendShapeBind.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/BlendShapeBind.ts rename to packages/types-vrm-0.0/types/BlendShapeBind.d.ts diff --git a/packages/types-vrm-0.0/src/BlendShapeGroup.ts b/packages/types-vrm-0.0/types/BlendShapeGroup.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/BlendShapeGroup.ts rename to packages/types-vrm-0.0/types/BlendShapeGroup.d.ts diff --git a/packages/types-vrm-0.0/src/BlendShapeMaterialBind.ts b/packages/types-vrm-0.0/types/BlendShapeMaterialBind.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/BlendShapeMaterialBind.ts rename to packages/types-vrm-0.0/types/BlendShapeMaterialBind.d.ts diff --git a/packages/types-vrm-0.0/src/BlendShapePresetName.ts b/packages/types-vrm-0.0/types/BlendShapePresetName.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/BlendShapePresetName.ts rename to packages/types-vrm-0.0/types/BlendShapePresetName.d.ts diff --git a/packages/types-vrm-0.0/src/FirstPerson.ts b/packages/types-vrm-0.0/types/FirstPerson.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/FirstPerson.ts rename to packages/types-vrm-0.0/types/FirstPerson.d.ts diff --git a/packages/types-vrm-0.0/src/FirstPersonDegreeMap.ts b/packages/types-vrm-0.0/types/FirstPersonDegreeMap.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/FirstPersonDegreeMap.ts rename to packages/types-vrm-0.0/types/FirstPersonDegreeMap.d.ts diff --git a/packages/types-vrm-0.0/src/FirstPersonMeshAnnotation.ts b/packages/types-vrm-0.0/types/FirstPersonMeshAnnotation.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/FirstPersonMeshAnnotation.ts rename to packages/types-vrm-0.0/types/FirstPersonMeshAnnotation.d.ts diff --git a/packages/types-vrm-0.0/src/Humanoid.ts b/packages/types-vrm-0.0/types/Humanoid.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/Humanoid.ts rename to packages/types-vrm-0.0/types/Humanoid.d.ts diff --git a/packages/types-vrm-0.0/src/HumanoidBone.ts b/packages/types-vrm-0.0/types/HumanoidBone.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/HumanoidBone.ts rename to packages/types-vrm-0.0/types/HumanoidBone.d.ts diff --git a/packages/types-vrm-0.0/src/HumanoidBoneName.ts b/packages/types-vrm-0.0/types/HumanoidBoneName.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/HumanoidBoneName.ts rename to packages/types-vrm-0.0/types/HumanoidBoneName.d.ts diff --git a/packages/types-vrm-0.0/src/Material.ts b/packages/types-vrm-0.0/types/Material.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/Material.ts rename to packages/types-vrm-0.0/types/Material.d.ts diff --git a/packages/types-vrm-0.0/src/Meta.ts b/packages/types-vrm-0.0/types/Meta.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/Meta.ts rename to packages/types-vrm-0.0/types/Meta.d.ts diff --git a/packages/types-vrm-0.0/src/SecondaryAnimation.ts b/packages/types-vrm-0.0/types/SecondaryAnimation.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/SecondaryAnimation.ts rename to packages/types-vrm-0.0/types/SecondaryAnimation.d.ts diff --git a/packages/types-vrm-0.0/src/SecondaryAnimationCollider.ts b/packages/types-vrm-0.0/types/SecondaryAnimationCollider.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/SecondaryAnimationCollider.ts rename to packages/types-vrm-0.0/types/SecondaryAnimationCollider.d.ts diff --git a/packages/types-vrm-0.0/src/SecondaryAnimationColliderGroup.ts b/packages/types-vrm-0.0/types/SecondaryAnimationColliderGroup.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/SecondaryAnimationColliderGroup.ts rename to packages/types-vrm-0.0/types/SecondaryAnimationColliderGroup.d.ts diff --git a/packages/types-vrm-0.0/src/SecondaryAnimationSpring.ts b/packages/types-vrm-0.0/types/SecondaryAnimationSpring.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/SecondaryAnimationSpring.ts rename to packages/types-vrm-0.0/types/SecondaryAnimationSpring.d.ts diff --git a/packages/types-vrm-0.0/src/VRM.ts b/packages/types-vrm-0.0/types/VRM.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/VRM.ts rename to packages/types-vrm-0.0/types/VRM.d.ts diff --git a/packages/types-vrm-0.0/src/Vector3.ts b/packages/types-vrm-0.0/types/Vector3.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/Vector3.ts rename to packages/types-vrm-0.0/types/Vector3.d.ts diff --git a/packages/types-vrm-0.0/src/index.ts b/packages/types-vrm-0.0/types/index.d.ts similarity index 100% rename from packages/types-vrm-0.0/src/index.ts rename to packages/types-vrm-0.0/types/index.d.ts diff --git a/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/.gitignore b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/.gitignore new file mode 100644 index 000000000..072a7430a --- /dev/null +++ b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/.gitignore @@ -0,0 +1 @@ +!types diff --git a/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/package.json b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/package.json index b5645291c..5f6dc172f 100644 --- a/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/package.json +++ b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/package.json @@ -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", @@ -25,15 +17,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" + "all": "yarn lint && yarn clean && yarn docs", + "clean": "rimraf docs/", + "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" ] diff --git a/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/tsconfig.json b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/tsconfig.json index 5bac6173e..15b9f2152 100644 --- a/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/tsconfig.json +++ b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", "include": [ - "./src" + "./types" ] } diff --git a/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/src/VRMCMaterialsHDREmissiveMultiplier.ts b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/types/VRMCMaterialsHDREmissiveMultiplier.d.ts similarity index 100% rename from packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/src/VRMCMaterialsHDREmissiveMultiplier.ts rename to packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/types/VRMCMaterialsHDREmissiveMultiplier.d.ts diff --git a/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/src/index.ts b/packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/types/index.d.ts similarity index 100% rename from packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/src/index.ts rename to packages/types-vrmc-materials-hdr-emissive-multiplier-1.0/types/index.d.ts diff --git a/packages/types-vrmc-materials-mtoon-1.0/.gitignore b/packages/types-vrmc-materials-mtoon-1.0/.gitignore new file mode 100644 index 000000000..072a7430a --- /dev/null +++ b/packages/types-vrmc-materials-mtoon-1.0/.gitignore @@ -0,0 +1 @@ +!types diff --git a/packages/types-vrmc-materials-mtoon-1.0/package.json b/packages/types-vrmc-materials-mtoon-1.0/package.json index 23f5dd500..5fab09619 100644 --- a/packages/types-vrmc-materials-mtoon-1.0/package.json +++ b/packages/types-vrmc-materials-mtoon-1.0/package.json @@ -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", @@ -25,15 +17,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" + "all": "yarn lint && yarn clean && yarn docs", + "clean": "rimraf docs/", + "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" ] diff --git a/packages/types-vrmc-materials-mtoon-1.0/tsconfig.json b/packages/types-vrmc-materials-mtoon-1.0/tsconfig.json index 5bac6173e..15b9f2152 100644 --- a/packages/types-vrmc-materials-mtoon-1.0/tsconfig.json +++ b/packages/types-vrmc-materials-mtoon-1.0/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", "include": [ - "./src" + "./types" ] } diff --git a/packages/types-vrmc-materials-mtoon-1.0/src/MaterialsMToonOutlineWidthMode.ts b/packages/types-vrmc-materials-mtoon-1.0/types/MaterialsMToonOutlineWidthMode.d.ts similarity index 100% rename from packages/types-vrmc-materials-mtoon-1.0/src/MaterialsMToonOutlineWidthMode.ts rename to packages/types-vrmc-materials-mtoon-1.0/types/MaterialsMToonOutlineWidthMode.d.ts diff --git a/packages/types-vrmc-materials-mtoon-1.0/src/MaterialsMToonShadingShiftTextureInfo.ts b/packages/types-vrmc-materials-mtoon-1.0/types/MaterialsMToonShadingShiftTextureInfo.d.ts similarity index 100% rename from packages/types-vrmc-materials-mtoon-1.0/src/MaterialsMToonShadingShiftTextureInfo.ts rename to packages/types-vrmc-materials-mtoon-1.0/types/MaterialsMToonShadingShiftTextureInfo.d.ts diff --git a/packages/types-vrmc-materials-mtoon-1.0/src/MaterialsMToonTextureInfo.ts b/packages/types-vrmc-materials-mtoon-1.0/types/MaterialsMToonTextureInfo.d.ts similarity index 100% rename from packages/types-vrmc-materials-mtoon-1.0/src/MaterialsMToonTextureInfo.ts rename to packages/types-vrmc-materials-mtoon-1.0/types/MaterialsMToonTextureInfo.d.ts diff --git a/packages/types-vrmc-materials-mtoon-1.0/src/VRMCMaterialsMToon.ts b/packages/types-vrmc-materials-mtoon-1.0/types/VRMCMaterialsMToon.d.ts similarity index 100% rename from packages/types-vrmc-materials-mtoon-1.0/src/VRMCMaterialsMToon.ts rename to packages/types-vrmc-materials-mtoon-1.0/types/VRMCMaterialsMToon.d.ts diff --git a/packages/types-vrmc-materials-mtoon-1.0/src/index.ts b/packages/types-vrmc-materials-mtoon-1.0/types/index.d.ts similarity index 100% rename from packages/types-vrmc-materials-mtoon-1.0/src/index.ts rename to packages/types-vrmc-materials-mtoon-1.0/types/index.d.ts diff --git a/packages/types-vrmc-node-constraint-1.0/.gitignore b/packages/types-vrmc-node-constraint-1.0/.gitignore new file mode 100644 index 000000000..072a7430a --- /dev/null +++ b/packages/types-vrmc-node-constraint-1.0/.gitignore @@ -0,0 +1 @@ +!types diff --git a/packages/types-vrmc-node-constraint-1.0/package.json b/packages/types-vrmc-node-constraint-1.0/package.json index 658ea274a..589fbe414 100644 --- a/packages/types-vrmc-node-constraint-1.0/package.json +++ b/packages/types-vrmc-node-constraint-1.0/package.json @@ -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", @@ -25,15 +17,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" + "all": "yarn lint && yarn clean && yarn docs", + "clean": "rimraf docs/", + "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" ] diff --git a/packages/types-vrmc-node-constraint-1.0/tsconfig.json b/packages/types-vrmc-node-constraint-1.0/tsconfig.json index 5bac6173e..15b9f2152 100644 --- a/packages/types-vrmc-node-constraint-1.0/tsconfig.json +++ b/packages/types-vrmc-node-constraint-1.0/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", "include": [ - "./src" + "./types" ] } diff --git a/packages/types-vrmc-node-constraint-1.0/src/AimConstraint.ts b/packages/types-vrmc-node-constraint-1.0/types/AimConstraint.d.ts similarity index 100% rename from packages/types-vrmc-node-constraint-1.0/src/AimConstraint.ts rename to packages/types-vrmc-node-constraint-1.0/types/AimConstraint.d.ts diff --git a/packages/types-vrmc-node-constraint-1.0/src/Constraint.ts b/packages/types-vrmc-node-constraint-1.0/types/Constraint.d.ts similarity index 100% rename from packages/types-vrmc-node-constraint-1.0/src/Constraint.ts rename to packages/types-vrmc-node-constraint-1.0/types/Constraint.d.ts diff --git a/packages/types-vrmc-node-constraint-1.0/src/RollConstraint.ts b/packages/types-vrmc-node-constraint-1.0/types/RollConstraint.d.ts similarity index 100% rename from packages/types-vrmc-node-constraint-1.0/src/RollConstraint.ts rename to packages/types-vrmc-node-constraint-1.0/types/RollConstraint.d.ts diff --git a/packages/types-vrmc-node-constraint-1.0/src/RotationConstraint.ts b/packages/types-vrmc-node-constraint-1.0/types/RotationConstraint.d.ts similarity index 100% rename from packages/types-vrmc-node-constraint-1.0/src/RotationConstraint.ts rename to packages/types-vrmc-node-constraint-1.0/types/RotationConstraint.d.ts diff --git a/packages/types-vrmc-node-constraint-1.0/src/VRMCNodeConstraint.ts b/packages/types-vrmc-node-constraint-1.0/types/VRMCNodeConstraint.d.ts similarity index 100% rename from packages/types-vrmc-node-constraint-1.0/src/VRMCNodeConstraint.ts rename to packages/types-vrmc-node-constraint-1.0/types/VRMCNodeConstraint.d.ts diff --git a/packages/types-vrmc-node-constraint-1.0/src/index.ts b/packages/types-vrmc-node-constraint-1.0/types/index.d.ts similarity index 100% rename from packages/types-vrmc-node-constraint-1.0/src/index.ts rename to packages/types-vrmc-node-constraint-1.0/types/index.d.ts diff --git a/packages/types-vrmc-springbone-1.0/.gitignore b/packages/types-vrmc-springbone-1.0/.gitignore new file mode 100644 index 000000000..072a7430a --- /dev/null +++ b/packages/types-vrmc-springbone-1.0/.gitignore @@ -0,0 +1 @@ +!types diff --git a/packages/types-vrmc-springbone-1.0/package.json b/packages/types-vrmc-springbone-1.0/package.json index a9430d8d7..03a1fcd71 100644 --- a/packages/types-vrmc-springbone-1.0/package.json +++ b/packages/types-vrmc-springbone-1.0/package.json @@ -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", @@ -25,15 +17,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" + "all": "yarn lint && yarn clean && yarn docs", + "clean": "rimraf docs/", + "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" ] diff --git a/packages/types-vrmc-springbone-1.0/tsconfig.json b/packages/types-vrmc-springbone-1.0/tsconfig.json index 5bac6173e..15b9f2152 100644 --- a/packages/types-vrmc-springbone-1.0/tsconfig.json +++ b/packages/types-vrmc-springbone-1.0/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", "include": [ - "./src" + "./types" ] } diff --git a/packages/types-vrmc-springbone-1.0/src/SpringBoneCollider.ts b/packages/types-vrmc-springbone-1.0/types/SpringBoneCollider.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/SpringBoneCollider.ts rename to packages/types-vrmc-springbone-1.0/types/SpringBoneCollider.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/SpringBoneColliderCapsule.ts b/packages/types-vrmc-springbone-1.0/types/SpringBoneColliderCapsule.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/SpringBoneColliderCapsule.ts rename to packages/types-vrmc-springbone-1.0/types/SpringBoneColliderCapsule.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/SpringBoneColliderGroup.ts b/packages/types-vrmc-springbone-1.0/types/SpringBoneColliderGroup.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/SpringBoneColliderGroup.ts rename to packages/types-vrmc-springbone-1.0/types/SpringBoneColliderGroup.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/SpringBoneColliderShape.ts b/packages/types-vrmc-springbone-1.0/types/SpringBoneColliderShape.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/SpringBoneColliderShape.ts rename to packages/types-vrmc-springbone-1.0/types/SpringBoneColliderShape.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/SpringBoneColliderSphere.ts b/packages/types-vrmc-springbone-1.0/types/SpringBoneColliderSphere.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/SpringBoneColliderSphere.ts rename to packages/types-vrmc-springbone-1.0/types/SpringBoneColliderSphere.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/SpringBoneJoint.ts b/packages/types-vrmc-springbone-1.0/types/SpringBoneJoint.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/SpringBoneJoint.ts rename to packages/types-vrmc-springbone-1.0/types/SpringBoneJoint.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/SpringBoneSpring.ts b/packages/types-vrmc-springbone-1.0/types/SpringBoneSpring.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/SpringBoneSpring.ts rename to packages/types-vrmc-springbone-1.0/types/SpringBoneSpring.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/VRMCSpringBone.ts b/packages/types-vrmc-springbone-1.0/types/VRMCSpringBone.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/VRMCSpringBone.ts rename to packages/types-vrmc-springbone-1.0/types/VRMCSpringBone.d.ts diff --git a/packages/types-vrmc-springbone-1.0/src/index.ts b/packages/types-vrmc-springbone-1.0/types/index.d.ts similarity index 100% rename from packages/types-vrmc-springbone-1.0/src/index.ts rename to packages/types-vrmc-springbone-1.0/types/index.d.ts diff --git a/packages/types-vrmc-vrm-1.0/.gitignore b/packages/types-vrmc-vrm-1.0/.gitignore new file mode 100644 index 000000000..072a7430a --- /dev/null +++ b/packages/types-vrmc-vrm-1.0/.gitignore @@ -0,0 +1 @@ +!types diff --git a/packages/types-vrmc-vrm-1.0/package.json b/packages/types-vrmc-vrm-1.0/package.json index 54fd3da56..fabb91f0e 100644 --- a/packages/types-vrmc-vrm-1.0/package.json +++ b/packages/types-vrmc-vrm-1.0/package.json @@ -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", @@ -25,15 +17,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" + "all": "yarn lint && yarn clean && yarn docs", + "clean": "rimraf docs/", + "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" ] diff --git a/packages/types-vrmc-vrm-1.0/tsconfig.json b/packages/types-vrmc-vrm-1.0/tsconfig.json index 5bac6173e..15b9f2152 100644 --- a/packages/types-vrmc-vrm-1.0/tsconfig.json +++ b/packages/types-vrmc-vrm-1.0/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", "include": [ - "./src" + "./types" ] } diff --git a/packages/types-vrmc-vrm-1.0/src/Expression.ts b/packages/types-vrmc-vrm-1.0/types/Expression.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/Expression.ts rename to packages/types-vrmc-vrm-1.0/types/Expression.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/ExpressionMaterialColorBind.ts b/packages/types-vrmc-vrm-1.0/types/ExpressionMaterialColorBind.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/ExpressionMaterialColorBind.ts rename to packages/types-vrmc-vrm-1.0/types/ExpressionMaterialColorBind.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/ExpressionMaterialColorType.ts b/packages/types-vrmc-vrm-1.0/types/ExpressionMaterialColorType.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/ExpressionMaterialColorType.ts rename to packages/types-vrmc-vrm-1.0/types/ExpressionMaterialColorType.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/ExpressionMorphTargetBind.ts b/packages/types-vrmc-vrm-1.0/types/ExpressionMorphTargetBind.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/ExpressionMorphTargetBind.ts rename to packages/types-vrmc-vrm-1.0/types/ExpressionMorphTargetBind.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/ExpressionOverrideType.ts b/packages/types-vrmc-vrm-1.0/types/ExpressionOverrideType.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/ExpressionOverrideType.ts rename to packages/types-vrmc-vrm-1.0/types/ExpressionOverrideType.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/ExpressionPresetName.ts b/packages/types-vrmc-vrm-1.0/types/ExpressionPresetName.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/ExpressionPresetName.ts rename to packages/types-vrmc-vrm-1.0/types/ExpressionPresetName.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/ExpressionTextureTransformBind.ts b/packages/types-vrmc-vrm-1.0/types/ExpressionTextureTransformBind.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/ExpressionTextureTransformBind.ts rename to packages/types-vrmc-vrm-1.0/types/ExpressionTextureTransformBind.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/Expressions.ts b/packages/types-vrmc-vrm-1.0/types/Expressions.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/Expressions.ts rename to packages/types-vrmc-vrm-1.0/types/Expressions.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/FirstPerson.ts b/packages/types-vrmc-vrm-1.0/types/FirstPerson.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/FirstPerson.ts rename to packages/types-vrmc-vrm-1.0/types/FirstPerson.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/FirstPersonMeshAnnotation.ts b/packages/types-vrmc-vrm-1.0/types/FirstPersonMeshAnnotation.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/FirstPersonMeshAnnotation.ts rename to packages/types-vrmc-vrm-1.0/types/FirstPersonMeshAnnotation.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/Humanoid.ts b/packages/types-vrmc-vrm-1.0/types/Humanoid.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/Humanoid.ts rename to packages/types-vrmc-vrm-1.0/types/Humanoid.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/HumanoidHumanBone.ts b/packages/types-vrmc-vrm-1.0/types/HumanoidHumanBone.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/HumanoidHumanBone.ts rename to packages/types-vrmc-vrm-1.0/types/HumanoidHumanBone.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/HumanoidHumanBoneName.ts b/packages/types-vrmc-vrm-1.0/types/HumanoidHumanBoneName.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/HumanoidHumanBoneName.ts rename to packages/types-vrmc-vrm-1.0/types/HumanoidHumanBoneName.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/HumanoidHumanBones.ts b/packages/types-vrmc-vrm-1.0/types/HumanoidHumanBones.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/HumanoidHumanBones.ts rename to packages/types-vrmc-vrm-1.0/types/HumanoidHumanBones.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/LookAt.ts b/packages/types-vrmc-vrm-1.0/types/LookAt.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/LookAt.ts rename to packages/types-vrmc-vrm-1.0/types/LookAt.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/LookAtRangeMap.ts b/packages/types-vrmc-vrm-1.0/types/LookAtRangeMap.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/LookAtRangeMap.ts rename to packages/types-vrmc-vrm-1.0/types/LookAtRangeMap.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/Meta.ts b/packages/types-vrmc-vrm-1.0/types/Meta.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/Meta.ts rename to packages/types-vrmc-vrm-1.0/types/Meta.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/VRMCVRM.ts b/packages/types-vrmc-vrm-1.0/types/VRMCVRM.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/VRMCVRM.ts rename to packages/types-vrmc-vrm-1.0/types/VRMCVRM.d.ts diff --git a/packages/types-vrmc-vrm-1.0/src/index.ts b/packages/types-vrmc-vrm-1.0/types/index.d.ts similarity index 100% rename from packages/types-vrmc-vrm-1.0/src/index.ts rename to packages/types-vrmc-vrm-1.0/types/index.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/.gitignore b/packages/types-vrmc-vrm-animation-1.0/.gitignore new file mode 100644 index 000000000..072a7430a --- /dev/null +++ b/packages/types-vrmc-vrm-animation-1.0/.gitignore @@ -0,0 +1 @@ +!types diff --git a/packages/types-vrmc-vrm-animation-1.0/package.json b/packages/types-vrmc-vrm-animation-1.0/package.json index 6fdb1f1c3..8fbf3b0ae 100644 --- a/packages/types-vrmc-vrm-animation-1.0/package.json +++ b/packages/types-vrmc-vrm-animation-1.0/package.json @@ -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", @@ -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" ] diff --git a/packages/types-vrmc-vrm-animation-1.0/tsconfig.json b/packages/types-vrmc-vrm-animation-1.0/tsconfig.json index 5bac6173e..15b9f2152 100644 --- a/packages/types-vrmc-vrm-animation-1.0/tsconfig.json +++ b/packages/types-vrmc-vrm-animation-1.0/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", "include": [ - "./src" + "./types" ] } diff --git a/packages/types-vrmc-vrm-animation-1.0/src/Expression.ts b/packages/types-vrmc-vrm-animation-1.0/types/Expression.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/Expression.ts rename to packages/types-vrmc-vrm-animation-1.0/types/Expression.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/src/Expressions.ts b/packages/types-vrmc-vrm-animation-1.0/types/Expressions.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/Expressions.ts rename to packages/types-vrmc-vrm-animation-1.0/types/Expressions.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/src/Humanoid.ts b/packages/types-vrmc-vrm-animation-1.0/types/Humanoid.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/Humanoid.ts rename to packages/types-vrmc-vrm-animation-1.0/types/Humanoid.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/src/HumanoidHumanBone.ts b/packages/types-vrmc-vrm-animation-1.0/types/HumanoidHumanBone.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/HumanoidHumanBone.ts rename to packages/types-vrmc-vrm-animation-1.0/types/HumanoidHumanBone.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/src/HumanoidHumanBones.ts b/packages/types-vrmc-vrm-animation-1.0/types/HumanoidHumanBones.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/HumanoidHumanBones.ts rename to packages/types-vrmc-vrm-animation-1.0/types/HumanoidHumanBones.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/src/LookAt.ts b/packages/types-vrmc-vrm-animation-1.0/types/LookAt.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/LookAt.ts rename to packages/types-vrmc-vrm-animation-1.0/types/LookAt.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/src/VRMCVRMAnimation.ts b/packages/types-vrmc-vrm-animation-1.0/types/VRMCVRMAnimation.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/VRMCVRMAnimation.ts rename to packages/types-vrmc-vrm-animation-1.0/types/VRMCVRMAnimation.d.ts diff --git a/packages/types-vrmc-vrm-animation-1.0/src/index.ts b/packages/types-vrmc-vrm-animation-1.0/types/index.d.ts similarity index 100% rename from packages/types-vrmc-vrm-animation-1.0/src/index.ts rename to packages/types-vrmc-vrm-animation-1.0/types/index.d.ts diff --git a/yarn.lock b/yarn.lock index 2232dc22e..7b6835b26 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2786,15 +2786,6 @@ dotenv@~10.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== -downlevel-dts@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/downlevel-dts/-/downlevel-dts-0.11.0.tgz#514a2d723009c5845730c1db6c994484c596ed9c" - integrity sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw== - dependencies: - semver "^7.3.2" - shelljs "^0.8.3" - typescript next - duplexer@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" @@ -3516,7 +3507,7 @@ glob@^10.2.2: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" -glob@^7.0.0, glob@^7.1.3, glob@^7.1.4: +glob@^7.1.3, glob@^7.1.4: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -3857,11 +3848,6 @@ inquirer@8.2.4, inquirer@^8.2.4: through "^2.3.6" wrap-ansi "^7.0.0" -interpret@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - ip@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.1.tgz#e8f3595d33a3ea66490204234b77636965307105" @@ -6166,13 +6152,6 @@ readable-stream@~2.3.6: string_decoder "~1.1.1" util-deprecate "~1.0.1" -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== - dependencies: - resolve "^1.1.6" - redent@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" @@ -6208,7 +6187,7 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.1.6, resolve@^1.10.0: +resolve@^1.10.0: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -6315,7 +6294,7 @@ semver@7.3.8: dependencies: lru-cache "^6.0.0" -semver@7.5.4, semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8: +semver@7.5.4, semver@^7.0.0, semver@^7.1.1, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8: version "7.5.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== @@ -6356,15 +6335,6 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shelljs@^0.8.3: - version "0.8.5" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" - integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - shiki@^0.14.7: version "0.14.7" resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.14.7.tgz#c3c9e1853e9737845f1d2ef81b31bcfb07056d4e" @@ -6543,7 +6513,16 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -6593,7 +6572,14 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -6953,11 +6939,6 @@ typescript@^5.4.5: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== -typescript@next: - version "5.0.0-dev.20221212" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.0-dev.20221212.tgz#bdc0fca3a3c408209131daafa6c1cbf480f25fc1" - integrity sha512-bnSpGyeM4wf0n7H5Tv4oWf3dPiEpUh2bBLbrLkJ9LsCQVdedHQwC52H3gtWEPT/yt4XCiDtfqjZTGHXxEtDn7A== - uglify-js@^3.1.4: version "3.17.2" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.2.tgz#f55f668b9a64b213977ae688703b6bbb7ca861c6" @@ -7164,7 +7145,16 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==