@moluoxixi/create-app 2.0.402 → 2.0.404
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/dist/types/features.d.ts +1 -1
- package/dist/types/features.js +1 -0
- package/dist/utils/prompts.js +10 -9
- package/package.json +1 -1
- package/templates/common/base/package.json +1 -1
- package/templates/common/base/scripts/build.mts +17 -17
- package/templates/common/base/src/apis/index.ts +3 -4
- package/templates/common/base/src/apis/types/example.ts +0 -1
- package/templates/common/base/src/assets/fonts/index.css +0 -1
- package/templates/common/base/src/assets/styles/base.scss +1 -9
- package/templates/common/base/src/assets/styles/custom.scss +0 -1
- package/templates/common/base/src/assets/styles/tailwind.scss +0 -1
- package/templates/common/base/src/constants/index.ts +3 -4
- package/templates/common/base/src/utils/index.ts +22 -23
- package/templates/common/base/vite.config.ts.ejs +5 -1
- package/templates/common/features/husky/.husky/install.mjs +3 -0
- package/templates/react/base/index.html +1 -2
- package/templates/react/base/node_modules/.bin/browserslist +17 -0
- package/templates/react/base/node_modules/.bin/browserslist.CMD +12 -0
- package/templates/react/base/node_modules/.bin/browserslist.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/jiti +17 -0
- package/templates/react/base/node_modules/.bin/jiti.CMD +12 -0
- package/templates/react/base/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/parser +17 -0
- package/templates/react/base/node_modules/.bin/parser.CMD +12 -0
- package/templates/react/base/node_modules/.bin/parser.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/rollup +17 -0
- package/templates/react/base/node_modules/.bin/rollup.CMD +12 -0
- package/templates/react/base/node_modules/.bin/rollup.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/sass +17 -0
- package/templates/react/base/node_modules/.bin/sass.CMD +12 -0
- package/templates/react/base/node_modules/.bin/sass.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/terser +17 -0
- package/templates/react/base/node_modules/.bin/terser.CMD +12 -0
- package/templates/react/base/node_modules/.bin/terser.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/tsc +17 -0
- package/templates/react/base/node_modules/.bin/tsc.CMD +12 -0
- package/templates/react/base/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/tsserver +17 -0
- package/templates/react/base/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/react/base/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/tsx +17 -0
- package/templates/react/base/node_modules/.bin/tsx.CMD +12 -0
- package/templates/react/base/node_modules/.bin/tsx.ps1 +41 -0
- package/templates/react/base/node_modules/.bin/vite +2 -2
- package/templates/react/base/node_modules/.bin/vite.CMD +2 -2
- package/templates/react/base/node_modules/.bin/vite.ps1 +4 -4
- package/templates/react/base/node_modules/.bin/yaml +17 -0
- package/templates/react/base/node_modules/.bin/yaml.CMD +12 -0
- package/templates/react/base/node_modules/.bin/yaml.ps1 +41 -0
- package/templates/react/base/package.json +1 -2
- package/templates/react/base/src/main.tsx.ejs +50 -6
- package/templates/react/base/tsconfig.app.json +0 -1
- package/templates/react/base/tsconfig.base.json +0 -1
- package/templates/react/base/tsconfig.json +0 -1
- package/templates/react/base/tsconfig.node.json +0 -1
- package/templates/react/features/eslint/eslint.config.ts +0 -1
- package/templates/react/features/eslint/node_modules/.bin/browserslist +17 -0
- package/templates/react/features/eslint/node_modules/.bin/browserslist.CMD +12 -0
- package/templates/react/features/eslint/node_modules/.bin/browserslist.ps1 +41 -0
- package/templates/react/features/eslint/node_modules/.bin/jiti +17 -0
- package/templates/react/features/eslint/node_modules/.bin/jiti.CMD +12 -0
- package/templates/react/features/eslint/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/react/features/eslint/node_modules/.bin/tsc +17 -0
- package/templates/react/features/eslint/node_modules/.bin/tsc.CMD +12 -0
- package/templates/react/features/eslint/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/react/features/eslint/node_modules/.bin/tsserver +17 -0
- package/templates/react/features/eslint/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/react/features/eslint/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/react/features/i18n/node_modules/.bin/tsc +17 -0
- package/templates/react/features/i18n/node_modules/.bin/tsc.CMD +12 -0
- package/templates/react/features/i18n/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/react/features/i18n/node_modules/.bin/tsserver +17 -0
- package/templates/react/features/i18n/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/react/features/i18n/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/react/features/i18n/src/locales/index.ts +0 -1
- package/templates/react/features/i18n/src/locales/lang/en.ts +1 -2
- package/templates/react/features/i18n/src/locales/lang/es.ts +1 -2
- package/templates/react/features/i18n/src/locales/lang/zh.ts +1 -2
- package/templates/react/features/manualRoutes/src/router/routes.tsx +4 -3
- package/templates/react/features/pageRoutes/node_modules/.bin/jiti +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/jiti.CMD +12 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/sass +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/sass.CMD +12 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/sass.ps1 +41 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/terser +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/terser.CMD +12 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/terser.ps1 +41 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/tsx +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/tsx.CMD +12 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/tsx.ps1 +41 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/vite +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/vite.CMD +12 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/vite.ps1 +41 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/yaml +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/yaml.CMD +12 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/yaml.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/jiti +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/jiti.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/sass +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/sass.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/sass.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/terser +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/terser.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/terser.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsc +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsc.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsserver +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsx +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsx.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/tsx.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/vite +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/vite.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/vite.ps1 +41 -0
- package/templates/react/features/qiankun/node_modules/.bin/yaml +17 -0
- package/templates/react/features/qiankun/node_modules/.bin/yaml.CMD +12 -0
- package/templates/react/features/qiankun/node_modules/.bin/yaml.ps1 +41 -0
- package/templates/react/features/qiankun/package.json +5 -0
- package/templates/react/features/qiankun/src/qiankun/index.ts +79 -0
- package/templates/react/features/sentry/src/utils/sentry.ts +0 -1
- package/templates/react/features/zustand/src/types/stores.ts +0 -1
- package/templates/vue/base/env.d.ts +11 -12
- package/templates/vue/base/index.html +1 -2
- package/templates/vue/base/node_modules/.bin/browserslist +17 -0
- package/templates/vue/base/node_modules/.bin/browserslist.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/browserslist.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/jiti +17 -0
- package/templates/vue/base/node_modules/.bin/jiti.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/parser +17 -0
- package/templates/vue/base/node_modules/.bin/parser.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/parser.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/rollup +17 -0
- package/templates/vue/base/node_modules/.bin/rollup.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/rollup.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/sass +17 -0
- package/templates/vue/base/node_modules/.bin/sass.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/sass.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/terser +17 -0
- package/templates/vue/base/node_modules/.bin/terser.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/terser.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/tsc +17 -0
- package/templates/vue/base/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/tsserver +17 -0
- package/templates/vue/base/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/tsx +17 -0
- package/templates/vue/base/node_modules/.bin/tsx.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/tsx.ps1 +41 -0
- package/templates/vue/base/node_modules/.bin/vite +2 -2
- package/templates/vue/base/node_modules/.bin/vite.CMD +2 -2
- package/templates/vue/base/node_modules/.bin/vite.ps1 +4 -4
- package/templates/vue/base/node_modules/.bin/yaml +17 -0
- package/templates/vue/base/node_modules/.bin/yaml.CMD +12 -0
- package/templates/vue/base/node_modules/.bin/yaml.ps1 +41 -0
- package/templates/vue/base/package.json +1 -2
- package/templates/vue/base/src/App.vue +4 -5
- package/templates/vue/base/src/assets/styles/main.scss +0 -1
- package/templates/vue/base/src/directives/index.ts +9 -9
- package/templates/vue/base/src/layouts/index.ts +0 -1
- package/templates/vue/base/src/main.ts.ejs +9 -26
- package/templates/vue/base/src/pages/about/index.vue +6 -7
- package/templates/vue/base/src/pages/home/index.vue +6 -7
- package/templates/vue/base/src/router/index.ts.ejs +10 -13
- package/templates/vue/base/tsconfig.app.json +0 -1
- package/templates/vue/base/tsconfig.base.json +0 -1
- package/templates/vue/base/tsconfig.json +0 -1
- package/templates/vue/base/tsconfig.node.json +0 -1
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/ant-design-vue/src/layouts/AntDesign.vue +13 -14
- package/templates/vue/features/element-plus/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/element-plus/src/assets/styles/element/index.scss +1 -2
- package/templates/vue/features/element-plus/src/components/SubMenu/index.ts +0 -1
- package/templates/vue/features/element-plus/src/components/SubMenu/src/_types/index.ts +0 -1
- package/templates/vue/features/element-plus/src/components/SubMenu/src/_types/props.ts +0 -1
- package/templates/vue/features/element-plus/src/components/SubMenu/src/index.vue +9 -10
- package/templates/vue/features/element-plus/src/layouts/element.vue +19 -16
- package/templates/vue/features/eslint/eslint.config.ts +0 -1
- package/templates/vue/features/eslint/node_modules/.bin/browserslist +17 -0
- package/templates/vue/features/eslint/node_modules/.bin/browserslist.CMD +12 -0
- package/templates/vue/features/eslint/node_modules/.bin/browserslist.ps1 +41 -0
- package/templates/vue/features/eslint/node_modules/.bin/jiti +17 -0
- package/templates/vue/features/eslint/node_modules/.bin/jiti.CMD +12 -0
- package/templates/vue/features/eslint/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/vue/features/eslint/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/eslint/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/eslint/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/eslint/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/eslint/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/eslint/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/i18n/src/locales/lang/en.ts +1 -2
- package/templates/vue/features/i18n/src/locales/lang/es.ts +1 -2
- package/templates/vue/features/i18n/src/locales/lang/zh.ts +1 -2
- package/templates/vue/features/manualRoutes/src/router/layout.vue +4 -5
- package/templates/vue/features/pageRoutes/node_modules/.bin/jiti +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/jiti.CMD +12 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/sass +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/sass.CMD +12 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/sass.ps1 +41 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/terser +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/terser.CMD +12 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/terser.ps1 +41 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsx +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsx.CMD +12 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsx.ps1 +41 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/vite +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/vite.CMD +12 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/vite.ps1 +41 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/yaml +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/yaml.CMD +12 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/yaml.ps1 +41 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/pinia/src/stores/index.ts +1 -2
- package/templates/vue/features/pinia/src/stores/system.ts +0 -1
- package/templates/vue/features/qiankun/node_modules/.bin/jiti +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/jiti.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/jiti.ps1 +41 -0
- package/templates/vue/features/qiankun/node_modules/.bin/sass +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/sass.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/sass.ps1 +41 -0
- package/templates/vue/features/qiankun/node_modules/.bin/terser +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/terser.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/terser.ps1 +41 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsx +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsx.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/tsx.ps1 +41 -0
- package/templates/vue/features/qiankun/node_modules/.bin/vite +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/vite.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/vite.ps1 +41 -0
- package/templates/vue/features/qiankun/node_modules/.bin/yaml +17 -0
- package/templates/vue/features/qiankun/node_modules/.bin/yaml.CMD +12 -0
- package/templates/vue/features/qiankun/node_modules/.bin/yaml.ps1 +41 -0
- package/templates/vue/features/qiankun/src/qiankun/index.ts +1 -2
- package/templates/vue/features/router/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/router/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/router/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/router/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/router/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/router/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsc.CMD +12 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsc.ps1 +41 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsserver.CMD +12 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsserver.ps1 +41 -0
- package/templates/vue/features/sentry/src/utils/sentry.ts +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsc" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsc" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsserver" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsserver" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\dist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\dist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\dist\cli.mjs" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\dist\cli.mjs" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\dist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\tsx@4.21.0\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/vite.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/vite.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\bin\vite.js" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\bin\vite.js" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules\vite\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/vite.js" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/vite.js" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/vite.js" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/vite@7.3.0_@types+node@22.1_7c06d9c6f7b7316383c1af6ed786169b/node_modules/vite/bin/vite.js" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\yaml@2.8.2\node_modules\yaml\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\yaml@2.8.2\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\yaml@2.8.2\node_modules\yaml\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\yaml@2.8.2\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\yaml@2.8.2\node_modules\yaml\bin.mjs" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\yaml@2.8.2\node_modules\yaml\bin.mjs" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\yaml@2.8.2\node_modules\yaml\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\yaml@2.8.2\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { ReactNode } from 'react'
|
|
2
|
+
import type { Router } from '@remix-run/router'
|
|
3
|
+
import {
|
|
4
|
+
qiankunWindow,
|
|
5
|
+
renderWithQiankun,
|
|
6
|
+
} from 'vite-plugin-qiankun/dist/helper'
|
|
7
|
+
|
|
8
|
+
let root: ReturnType<typeof import('react-dom/client').createRoot> | null = null
|
|
9
|
+
let router: Router | null = null
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Qiankun 微前端 Props 接口
|
|
13
|
+
*/
|
|
14
|
+
interface QiankunProps {
|
|
15
|
+
/** 容器元素(可选) */
|
|
16
|
+
container?: Element
|
|
17
|
+
/** 其他自定义属性 */
|
|
18
|
+
[key: string]: unknown
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Qiankun 渲染选项接口
|
|
23
|
+
*/
|
|
24
|
+
interface RenderOptions {
|
|
25
|
+
/** 创建 React 根节点的函数 */
|
|
26
|
+
createRoot: (container: Element | DocumentFragment) => ReturnType<typeof import('react-dom/client').createRoot>
|
|
27
|
+
/** 创建 React Router 实例的函数 */
|
|
28
|
+
createRouter: (basename?: string) => Router
|
|
29
|
+
/** 创建应用组件的函数 */
|
|
30
|
+
createApp: (router: Router) => ReactNode
|
|
31
|
+
/** 容器选择器或元素 */
|
|
32
|
+
container?: string | Element
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 设置 Qiankun 微前端
|
|
37
|
+
* @param options 渲染选项
|
|
38
|
+
*/
|
|
39
|
+
export function setupQiankun(options: RenderOptions): void {
|
|
40
|
+
const { createRoot, createRouter, createApp, container = '#root' } = options
|
|
41
|
+
|
|
42
|
+
renderWithQiankun({
|
|
43
|
+
mount(props: QiankunProps) {
|
|
44
|
+
const containerElement = props.container
|
|
45
|
+
? props.container.querySelector('#root') || props.container
|
|
46
|
+
: typeof container === 'string'
|
|
47
|
+
? document.querySelector(container)!
|
|
48
|
+
: container
|
|
49
|
+
|
|
50
|
+
root = createRoot(containerElement)
|
|
51
|
+
const basename = qiankunWindow.__POWERED_BY_QIANKUN__
|
|
52
|
+
? (qiankunWindow as { __INJECTED_PUBLIC_PATH_BY_QIANKUN__?: string }).__INJECTED_PUBLIC_PATH_BY_QIANKUN__?.split('/')[1]
|
|
53
|
+
: undefined
|
|
54
|
+
router = createRouter(basename)
|
|
55
|
+
root.render(createApp(router))
|
|
56
|
+
},
|
|
57
|
+
bootstrap() {
|
|
58
|
+
console.log('[Qiankun] bootstrap')
|
|
59
|
+
},
|
|
60
|
+
unmount() {
|
|
61
|
+
if (root) {
|
|
62
|
+
root.unmount()
|
|
63
|
+
root = null
|
|
64
|
+
router = null
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
update() {
|
|
68
|
+
console.log('[Qiankun] update')
|
|
69
|
+
},
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 判断是否运行在 Qiankun 微前端环境中
|
|
75
|
+
* @returns 是否在 Qiankun 环境中
|
|
76
|
+
*/
|
|
77
|
+
export function isQiankun(): boolean {
|
|
78
|
+
return qiankunWindow.__POWERED_BY_QIANKUN__ || false
|
|
79
|
+
}
|
|
@@ -5,23 +5,22 @@
|
|
|
5
5
|
/// <reference types="vite/client" />
|
|
6
6
|
|
|
7
7
|
interface ImportMetaEnv {
|
|
8
|
-
readonly VITE_APP_CODE: string
|
|
9
|
-
readonly VITE_APP_TITLE: string
|
|
10
|
-
readonly VITE_APP_PORT: number
|
|
11
|
-
readonly VITE_APP_VERSION: string
|
|
12
|
-
readonly VITE_APP_ENV: string
|
|
13
|
-
readonly VITE_API_BASE_URL: string
|
|
14
|
-
readonly VITE_SENTRY: boolean
|
|
8
|
+
readonly VITE_APP_CODE: string
|
|
9
|
+
readonly VITE_APP_TITLE: string
|
|
10
|
+
readonly VITE_APP_PORT: number
|
|
11
|
+
readonly VITE_APP_VERSION: string
|
|
12
|
+
readonly VITE_APP_ENV: string
|
|
13
|
+
readonly VITE_API_BASE_URL: string
|
|
14
|
+
readonly VITE_SENTRY: boolean
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface ImportMeta {
|
|
18
|
-
readonly env: ImportMetaEnv
|
|
18
|
+
readonly env: ImportMetaEnv
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
declare module '*.vue' {
|
|
22
|
-
import type { DefineComponent } from 'vue'
|
|
22
|
+
import type { DefineComponent } from 'vue'
|
|
23
23
|
|
|
24
|
-
const component: DefineComponent<object, object, unknown
|
|
25
|
-
export default component
|
|
24
|
+
const component: DefineComponent<object, object, unknown>
|
|
25
|
+
export default component
|
|
26
26
|
}
|
|
27
|
-
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@SETLOCAL
|
|
2
|
+
@IF NOT DEFINED NODE_PATH (
|
|
3
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
+
) ELSE (
|
|
5
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
+
)
|
|
7
|
+
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
|
|
9
|
+
) ELSE (
|
|
10
|
+
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
+
node "%~dp0\..\..\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
|
|
12
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
$pathsep=":"
|
|
6
|
+
$env_node_path=$env:NODE_PATH
|
|
7
|
+
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
+
# are installed in the same directory
|
|
11
|
+
$exe=".exe"
|
|
12
|
+
$pathsep=";"
|
|
13
|
+
} else {
|
|
14
|
+
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
+
}
|
|
16
|
+
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
+
$env:NODE_PATH=$new_node_path
|
|
18
|
+
} else {
|
|
19
|
+
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$ret=0
|
|
23
|
+
if (Test-Path "$basedir/node$exe") {
|
|
24
|
+
# Support pipeline input
|
|
25
|
+
if ($MyInvocation.ExpectingInput) {
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
27
|
+
} else {
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
29
|
+
}
|
|
30
|
+
$ret=$LASTEXITCODE
|
|
31
|
+
} else {
|
|
32
|
+
# Support pipeline input
|
|
33
|
+
if ($MyInvocation.ExpectingInput) {
|
|
34
|
+
$input | & "node$exe" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
35
|
+
} else {
|
|
36
|
+
& "node$exe" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
37
|
+
}
|
|
38
|
+
$ret=$LASTEXITCODE
|
|
39
|
+
}
|
|
40
|
+
$env:NODE_PATH=$env_node_path
|
|
41
|
+
exit $ret
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
17
|
+
fi
|