create-ncblock 0.0.29 → 0.0.31
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/scripts/scaffold-assets/AGENTS.md +2 -12
- package/scripts/utils/templates.ts +20 -1
- package/sdk-version.json +1 -1
- package/templates/debug/node_modules/.bin/tsc +0 -21
- package/templates/debug/node_modules/.bin/tsserver +0 -21
- package/templates/debug/node_modules/.bin/vite +0 -21
- package/templates/empty/node_modules/.bin/tsc +0 -21
- package/templates/empty/node_modules/.bin/tsserver +0 -21
- package/templates/empty/node_modules/.bin/vite +0 -21
- package/templates/radar-chart/node_modules/.bin/tsc +0 -21
- package/templates/radar-chart/node_modules/.bin/tsserver +0 -21
- package/templates/radar-chart/node_modules/.bin/vite +0 -21
- package/templates/table-view/node_modules/.bin/tsc +0 -21
- package/templates/table-view/node_modules/.bin/tsserver +0 -21
- package/templates/table-view/node_modules/.bin/vite +0 -21
package/package.json
CHANGED
|
@@ -15,17 +15,8 @@ That writes `custom_blocks.json`, `.notion/target.json`, and PATCHes any blocks
|
|
|
15
15
|
## Talking to the host
|
|
16
16
|
|
|
17
17
|
- Always use the React hooks from `ncblock`. Never call `window.parent.postMessage` directly — the SDK owns the protocol.
|
|
18
|
-
- Render app code inside `<NotionCustomBlock>` so the handshake completes before hooks
|
|
19
|
-
|
|
20
|
-
Hooks at a glance:
|
|
21
|
-
|
|
22
|
-
- `useCustomBlockContext()` — `{ customBlockId, parent, page }`.
|
|
23
|
-
- `useTheme()` — `"light" | "dark"`.
|
|
24
|
-
- `useDataSource(key, initialLimit?)` — `{ items, isLoading, hasMore, fetchMore, error }`.
|
|
25
|
-
- `useManifest()` — the declared manifest: data-source keys plus their property declarations.
|
|
26
|
-
- `pages.create(input)` — creates a page; pass `parent: { type: "data_source_key", key }` to target the block's wired data source.
|
|
27
|
-
|
|
28
|
-
`<NotionCustomBlock>` runs `useCustomBlockAutoResize` for you by default — no extra wiring needed. Pass `autoResize={false}` for full-bleed views. Full signatures live in `node_modules/ncblock/docs/*.md` and the `.d.ts` files.
|
|
18
|
+
- Render app code inside `<NotionCustomBlock>` so the handshake completes before hooks run.
|
|
19
|
+
- `<NotionCustomBlock>` runs `useCustomBlockAutoResize` for you by default — no extra wiring needed. Pass `autoResize={false}` for full-bleed views.
|
|
29
20
|
|
|
30
21
|
## Sizing
|
|
31
22
|
|
|
@@ -63,5 +54,4 @@ Two options:
|
|
|
63
54
|
- `node_modules/ncblock/docs/pages.md` — `pages.create / get / update / delete`.
|
|
64
55
|
- `node_modules/ncblock/docs/users.md` — `users.list / get`, `NotionUser`.
|
|
65
56
|
- `node_modules/ncblock/docs/manifest.md` — `custom_blocks.json` + Vite plugin.
|
|
66
|
-
- `node_modules/ncblock/dist/*.d.ts` — typed surface; hover in your editor.
|
|
67
57
|
- https://github.com/makenotion/custom — source and examples.
|
|
@@ -9,6 +9,19 @@ import {
|
|
|
9
9
|
writeFileSync,
|
|
10
10
|
} from "fs"
|
|
11
11
|
|
|
12
|
+
/** Local-only artifacts that should not be copied into scaffolded projects. */
|
|
13
|
+
export const TEMPLATE_LOCAL_ARTIFACTS = new Set([
|
|
14
|
+
"node_modules",
|
|
15
|
+
"dist",
|
|
16
|
+
".notion",
|
|
17
|
+
])
|
|
18
|
+
|
|
19
|
+
export function isTemplateLocalArtifactPath(relativePath: string): boolean {
|
|
20
|
+
return relativePath
|
|
21
|
+
.split(/[\\/]+/)
|
|
22
|
+
.some(segment => TEMPLATE_LOCAL_ARTIFACTS.has(segment))
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
type StoredTemplateMetadata = {
|
|
13
26
|
title?: string
|
|
14
27
|
description?: string
|
|
@@ -187,7 +200,13 @@ export function scaffoldTemplate({
|
|
|
187
200
|
}: ScaffoldTemplateOptions) {
|
|
188
201
|
copyDirectoryContents(templateDir, dest, {
|
|
189
202
|
overwrite,
|
|
190
|
-
|
|
203
|
+
// README.md and package.json are rendered below with the app name and
|
|
204
|
+
// SDK dependency rewritten for the standalone scaffolded project.
|
|
205
|
+
exclude: new Set([
|
|
206
|
+
"README.md",
|
|
207
|
+
"package.json",
|
|
208
|
+
...TEMPLATE_LOCAL_ARTIFACTS,
|
|
209
|
+
]),
|
|
191
210
|
})
|
|
192
211
|
|
|
193
212
|
// Scaffolded projects are standalone, not workspace members. If the user
|
package/sdk-version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.0.
|
|
1
|
+
{"version":"0.0.29"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/vite@8.0.10_@types+node@25.6.0_esbuild@0.27.7_jiti@2.6.1_tsx@4.21.0/node_modules:/home/runner/work/custom/custom/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
21
|
-
fi
|