rebuildjs 0.62.2 → 0.63.1

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,2 @@
1
- export * from '../any/index.js'
1
+ // reserved for future use
2
+ export {}
package/browser/index.js CHANGED
@@ -1 +1,2 @@
1
- export * from '../any/index.js'
1
+ // reserved for future use
2
+ export {}
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './any/index.js'
1
+ export {}
package/index.js CHANGED
@@ -1 +1 @@
1
- export * from './any/index.js'
1
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rebuildjs",
3
- "version": "0.62.2",
3
+ "version": "0.63.1",
4
4
  "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
5
  "keywords": [
6
6
  "reactive",
@@ -27,7 +27,6 @@
27
27
  "*.js",
28
28
  "*.json",
29
29
  "_fixtures",
30
- "any",
31
30
  "browser",
32
31
  "types",
33
32
  "server"
@@ -37,10 +36,6 @@
37
36
  "types": "./index.d.ts",
38
37
  "default": "./index.js"
39
38
  },
40
- "./any": {
41
- "types": "./any/index.d.ts",
42
- "default": "./any/index.js"
43
- },
44
39
  "./browser": {
45
40
  "types": "./browser/index.d.ts",
46
41
  "default": "./browser/index.js"
@@ -55,9 +50,9 @@
55
50
  "./package.json": "./package.json"
56
51
  },
57
52
  "dependencies": {
58
- "ctx-core": "^6.4.2",
53
+ "ctx-core": "^6.4.3",
59
54
  "elysia": "^0.8.17",
60
- "esbuild": "^0.20.0",
55
+ "esbuild": "^0.20.1",
61
56
  "fdir": "^6.1.1",
62
57
  "picomatch": "^4.0.1"
63
58
  },
@@ -73,8 +68,7 @@
73
68
  "uvu": "^0.5.6"
74
69
  },
75
70
  "publishConfig": {
76
- "access": "public",
77
- "cache": "~/.npm"
71
+ "access": "public"
78
72
  },
79
73
  "sideEffects": false,
80
74
  "scripts": {
@@ -256,6 +256,7 @@ export async function rebuildjs_browser__build(config) {
256
256
  minify: is_prod_(app_ctx),
257
257
  sourcemap: 'external',
258
258
  loader: default_loader,
259
+ publicPath: '/',
259
260
  ...esbuild__config,
260
261
  entryPoints,
261
262
  format: 'esm',
@@ -311,6 +312,7 @@ export async function rebuildjs_server__build(config) {
311
312
  minify: is_prod_(app_ctx),
312
313
  sourcemap: 'external',
313
314
  loader: default_loader,
315
+ publicPath: '/',
314
316
  ...esbuild__config,
315
317
  entryPoints,
316
318
  format: 'esm',
package/server/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from 'ctx-core/be'
2
2
  export * from 'ctx-core/rmemo'
3
- export * from '../any/index.js'
4
3
  export * from './app/index.js'
5
4
  export * from './asset/index.js'
6
5
  export * from './build/index.js'
package/server/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from 'ctx-core/be'
2
2
  export * from 'ctx-core/rmemo'
3
- export * from '../any/index.js'
4
3
  export * from './app/index.js'
5
4
  export * from './asset/index.js'
6
5
  export * from './build/index.js'
@@ -1,6 +0,0 @@
1
- export declare function asset_path_(mod_promise:Promise<{ default:string }>):Promise<string>
2
- export declare function asset_path_a_<
3
- Tuple extends [...Promise<{ default:string }>[]]
4
- >(...mod_promise_a:Tuple):Promise<{
5
- [Index in keyof Tuple]:string
6
- }>
@@ -1,20 +0,0 @@
1
- /**
2
- * @param {Promise<{ default:string }>}mod_promise
3
- * @returns {Promise<string>}
4
- * @private
5
- */
6
- export function asset_path_(mod_promise) {
7
- return (
8
- mod_promise
9
- .then(mod=>mod.default)
10
- .then(relative_path=>relative_path.replace(/^\.\//, '/'))
11
- )
12
- }
13
- /**
14
- * @param {Promise<{ default:string }>}mod_promise_a
15
- * @returns {Promise<string[]>}
16
- * @private
17
- */
18
- export function asset_path_a_(...mod_promise_a) {
19
- return Promise.all(mod_promise_a.map(asset_path_))
20
- }
@@ -1,23 +0,0 @@
1
- import { test } from 'uvu'
2
- import { equal } from 'uvu/assert'
3
- import { asset_path_, asset_path_a_ } from './index.js'
4
- test('asset_path_', async ()=>{
5
- equal(await asset_path_(mod_('./path.png')), '/path.png')
6
- })
7
- test('asset_path_a_', async ()=>{
8
- equal(await asset_path_a_(
9
- mod_('./path0.png'),
10
- mod_('./path1.png'),
11
- mod_('./path2.png'),
12
- mod_('./path3.png'),
13
- ), [
14
- '/path0.png',
15
- '/path1.png',
16
- '/path2.png',
17
- '/path3.png',
18
- ])
19
- })
20
- test.run()
21
- async function mod_(out_path:string) {
22
- return { default: out_path }
23
- }
package/any/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from 'ctx-core/be'
2
- export * from 'ctx-core/rmemo'
3
- export * from './asset/index.js'
package/any/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from 'ctx-core/be'
2
- export * from 'ctx-core/rmemo'
3
- export * from './asset/index.js'