Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a3988e7

Browse files
committed
Update import map
1 parent 80248fc commit a3988e7

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

import_map.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"imports": {
3-
"aleph/": "https://deno.land/x/[email protected]/",
4-
"aleph/web": "https://deno.land/x/[email protected]/framework/core/mod.ts",
5-
"aleph/react": "https://deno.land/x/[email protected]/framework/react/mod.ts",
3+
"aleph/": "./",
4+
"aleph/types": "./types.d.ts",
5+
"aleph/web": "./framework/core/mod.ts",
6+
"aleph/react": "./framework/react/mod.ts",
67
"std/": "https://deno.land/[email protected]/",
78
"react": "https://esm.sh/[email protected]",
8-
"react-dom": "https://esm.sh/[email protected]",
9-
"aleph/types": "https://deno.land/x/[email protected]/types.d.ts"
9+
"react-dom": "https://esm.sh/[email protected]"
1010
}
1111
}

version.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { defaultReactVersion } from './shared/constants.ts'
2-
31
/** `VERSION` managed by https://deno.land/x/publish */
42
export const VERSION = '0.3.0-beta.4'
53

@@ -13,21 +11,5 @@ export async function prepublish(version: string): Promise<boolean> {
1311
})
1412
const { success } = await p.status()
1513
p.close()
16-
if (success) {
17-
const data = await Deno.readTextFile('./import_map.json')
18-
const importMap = JSON.parse(data)
19-
Object.assign(importMap.imports, {
20-
'aleph/': `https://deno.land/x/aleph@v${version}/`,
21-
'aleph/types': `https://deno.land/x/aleph@v${version}/types.d.ts`,
22-
'aleph/web': `https://deno.land/x/aleph@v${version}/framework/core/mod.ts`,
23-
'aleph/react': `https://deno.land/x/aleph@v${version}/framework/react/mod.ts`,
24-
'react': `https://esm.sh/react@${defaultReactVersion}`,
25-
'react-dom': `https://esm.sh/react-dom@${defaultReactVersion}`,
26-
})
27-
await Deno.writeTextFile(
28-
'./import_map.json',
29-
JSON.stringify(importMap, undefined, 2)
30-
)
31-
}
3214
return success
3315
}

0 commit comments

Comments
 (0)