@aklinker1/aframe 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +7 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -142,7 +142,7 @@ export async function build(config: ResolvedConfig) {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
async function buildServer(config: ResolvedConfig): Promise<void> {
|
|
145
|
-
const
|
|
145
|
+
const cpDirOptions: CopyOptions = {
|
|
146
146
|
recursive: true,
|
|
147
147
|
filter: (src) =>
|
|
148
148
|
!src.includes("__tests__") &&
|
|
@@ -152,8 +152,12 @@ async function buildServer(config: ResolvedConfig): Promise<void> {
|
|
|
152
152
|
|
|
153
153
|
await Promise.all([
|
|
154
154
|
// Copy dirs
|
|
155
|
-
...[
|
|
156
|
-
cp(
|
|
155
|
+
...["server", "shared"].map((src) =>
|
|
156
|
+
cp(
|
|
157
|
+
join(config.rootDir, src),
|
|
158
|
+
join(config.outDir, src),
|
|
159
|
+
cpDirOptions,
|
|
160
|
+
).catch(() => {
|
|
157
161
|
// Ignore errors
|
|
158
162
|
}),
|
|
159
163
|
),
|