Skip to content

Commit

Permalink
chore: configure standalone awlib
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglingcats committed Jan 3, 2024
1 parent c1d3069 commit 60e6a5a
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-package-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
publish:
uses: ./.github/workflows/publish-package.yml
with:
tag: alpha
tag: beta
version: ${GITHUB_REF#refs/tags/v}
access: public
secrets: inherit
6 changes: 4 additions & 2 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ const externals = [

console.log("externals", externals)
const options = {
entryPoints: ["./src/index.ts"],
tsconfig: "./tsconfig.standalone.json",
entryPoints: ["./src/index.ts", "./src/vite-draco-plugin.ts"],
bundle: true,
outfile: "./dist/index.js",
outdir: "./dist",
// outfile: "./dist/index.js",
platform: "node",
target: "node18",
format: "esm",
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@
"types": "./dist/types/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc --emitDeclarationOnly && node build.mjs"
"build": "tsc --emitDeclarationOnly -p tsconfig.standalone.json && node build.mjs"
},
"keywords": [],
"author": "",
"license": "ISC",
"peerDependencies": {
"@ant-design/icons": "^5.2.6",
"@babel/core": "^7.23.2",
"@glowbuzzer/controls": "^1.10.0-alpha.6",
"@glowbuzzer/store": "^1.10.0-alpha.6",
"@glowbuzzer/controls": "^1.11.0-beta.1",
"@glowbuzzer/store": "^1.11.0-beta.1",
"@react-three/drei": "^9.88.11",
"@react-three/fiber": "^8.15.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"styled-components": "^6.1.0",
"three": "^0.158.0",
"three-stdlib": "^2.28.3",
"three-stdlib": "^2.28.3"
},
"devDependencies": {
"@types/node": "^20.10.6",
"@types/react": "^18.2.34",
"@types/three": "^0.158.1",
"typescript": "^5.2.2",
Expand Down
Loading

0 comments on commit 60e6a5a

Please sign in to comment.