Skip to content

Commit

Permalink
feat: bundle dts via api-extractor and move deps to dev only
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Sep 29, 2023
1 parent 2b34689 commit a7bb7b5
Show file tree
Hide file tree
Showing 29 changed files with 3,264 additions and 84 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
/packages/*/node_modules
/packages/*/docs
/packages/*/lib
/packages/*/ts*/
/packages/*/temp
tsdoc-metadata.json
*.log
456 changes: 456 additions & 0 deletions api-extractor.base.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@gltf-transform/core": "^2.4.7",
"@microsoft/api-extractor": "^7.37.0",
"@rollup/plugin-typescript": "^11.0.0",
"@types/jest": "^26.0.15",
"@typescript-eslint/eslint-plugin": "^4.6.1",
Expand Down
4 changes: 4 additions & 0 deletions packages/three-vrm-core/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"extends": "../../api-extractor.base.json"
}
11 changes: 4 additions & 7 deletions packages/three-vrm-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
"files": [
"/lib/",
"/ts*/",
"/types/",
"LICENSE"
],
"main": "lib/three-vrm-core.js",
"module": "lib/three-vrm-core.module.js",
"types": "types/index.d.ts",
"types": "lib/three-vrm-core.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/pixiv/three-vrm.git",
Expand All @@ -26,7 +25,7 @@
"build": "yarn build-dev && yarn build-prod && yarn build-types",
"build-dev": "cross-env NODE_ENV=development rollup -c",
"build-prod": "cross-env NODE_ENV=production rollup -c",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && api-extractor run && rimraf types",
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
"test": "jest",
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
Expand All @@ -39,11 +38,9 @@
"prettier --write"
]
},
"dependencies": {
"@pixiv/types-vrm-0.0": "2.0.6-alpha.2",
"@pixiv/types-vrmc-vrm-1.0": "2.0.6-alpha.2"
},
"devDependencies": {
"@pixiv/types-vrm-0.0": "2.0.6-alpha.2",
"@pixiv/types-vrmc-vrm-1.0": "2.0.6-alpha.2",
"@types/three": "^0.154.0",
"lint-staged": "13.1.2",
"three": "^0.154.0"
Expand Down
8 changes: 1 addition & 7 deletions packages/three-vrm-core/src/lookAt/VRMLookAt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export class VRMLookAt {
return this._yaw;
}

/**
* Its current angle around Y axis, in degree.
*/
public set yaw(value: number) {
this._yaw = value;
this._needsUpdate = true;
Expand All @@ -93,16 +90,13 @@ export class VRMLookAt {
return this._pitch;
}

/**
* Its current angle around X axis, in degree.
*/
public set pitch(value: number) {
this._pitch = value;
this._needsUpdate = true;
}

/**
* Specifies that angles need to be applied to its [@link applier].
* Specifies that angles need to be applied to its {@link applier}.
*/
protected _needsUpdate: boolean;

Expand Down
Loading

0 comments on commit a7bb7b5

Please sign in to comment.