Skip to content

Commit

Permalink
wip: 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 27, 2023
1 parent 0243521 commit 19ed32d
Show file tree
Hide file tree
Showing 47 changed files with 4,010 additions and 85 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/packages/*/lib
/packages/*/ts*/
/packages/*/types
/packages/*/temp
tsdoc-metadata.json
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"
}
10 changes: 4 additions & 6 deletions packages/three-vrm-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"main": "lib/three-vrm-core.js",
"module": "lib/three-vrm-core.module.js",
"types": "types/index.d.ts",
"types": "lib/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
Expand All @@ -33,7 +33,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 && downlevel-dts types ts3.4/types",
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && api-extractor run --local && downlevel-dts types ts3.4/types && 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 @@ -46,11 +46,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 19ed32d

Please sign in to comment.