orga-build 0.5.1 → 0.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["build.js"],"names":[],"mappings":"AAcA;;GAEG;AACH,qEAFW,OAAO,aAAa,EAAE,MAAM,iBAqJtC;;sBA/J4C,aAAa"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["build.js"],"names":[],"mappings":"AAcA;;GAEG;AACH,qEAFW,OAAO,aAAa,EAAE,MAAM,iBAmJtC;;sBA7J4C,aAAa"}
package/lib/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import path from 'node:path'
2
2
  import { createBuilder } from 'vite'
3
3
  import { fileURLToPath, pathToFileURL } from 'node:url'
4
- import { copy, emptyDir, ensureDir, exists } from './fs.js'
4
+ import { emptyDir, ensureDir, exists } from './fs.js'
5
5
  import fs from 'fs/promises'
6
6
  import { createOrgaBuildConfig, alias } from './plugin.js'
7
7
 
@@ -23,7 +23,7 @@ export async function build({
23
23
  }) {
24
24
  await emptyDir(outDir)
25
25
  const ssrOutDir = path.join(outDir, '.ssr')
26
- const clientOutDir = path.join(outDir, '.client')
26
+ const clientOutDir = outDir
27
27
 
28
28
  const { plugins, resolve } = createOrgaBuildConfig({
29
29
  root,
@@ -59,7 +59,7 @@ export async function build({
59
59
  build: {
60
60
  outDir: clientOutDir,
61
61
  cssCodeSplit: false,
62
- emptyOutDir: true,
62
+ emptyOutDir: false,
63
63
  assetsDir: 'assets',
64
64
  rollupOptions: {
65
65
  input: clientEntry,
@@ -119,8 +119,6 @@ export async function build({
119
119
  })
120
120
  )
121
121
 
122
- await copy(clientOutDir, outDir)
123
- await fs.rm(clientOutDir, { recursive: true })
124
122
  await fs.rm(ssrOutDir, { recursive: true })
125
123
 
126
124
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orga-build",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "A simple tool that builds org-mode files into a website",
5
5
  "type": "module",
6
6
  "engines": {