Skip to content

Commit

Permalink
🐛 fix(config): 打包错误修复 (#https:,#github,#com,#dext7r,#amis-adapter,#ac…
Browse files Browse the repository at this point in the history
…tions,#runs,#8897538380,#job,#24432647746)
  • Loading branch information
h7ml committed Apr 30, 2024
1 parent 4eec274 commit c104e53
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 52 deletions.
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ echo "当前 commit date: $(git log --format=%ad -n 1 HEAD)"
echo "当前 commit hash: $(git rev-parse --short HEAD)"
echo "当前 commit branch: $(git rev-parse --abbrev-ref HEAD)"

ls -l

touch build.log

# 获取当前用户名
Expand All @@ -22,7 +20,6 @@ else
echo "当前用户为 $current_user,不包含 'h7ml',执行 git reset 操作。"
echo "当前目录: $(pwd)"
git reset --hard $(git rev-parse --short HEAD)
ls -l
fi
# 设置环境变量
export PUBLIC_PATH_PREFIX='/amis-adapter/'
Expand Down
12 changes: 6 additions & 6 deletions examples/amis-editor-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"monaco-editor": "^0.38.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.11.2",
"amis": "^6.3.0",
"amis-core": "6.3.0",
"amis-editor": "^6.3.0",
"amis-editor-core": "^6.3.0",
"amis-formula": "^6.3.0",
"amis-theme-editor-helper": "^2.0.26",
"amis-ui": "^6.3.0"

"amis-ui": "^6.3.0",
"monaco-editor": "^0.38.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.11.2"
},
"devDependencies": {
"@types/react": "^18.0.28",
Expand Down
2 changes: 1 addition & 1 deletion examples/amis-editor-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
assetFileNames: 'static-amis-editor-react/[ext]/[name]-[hash].[ext]',
},
},
sourcemap: true,
sourcemap: false,
},
plugins: [
react(),
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-editor2.7/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"sourceMap": false,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-editor2.7/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default (/** if you want to use mode : { mode } */) => {
assetFileNames: 'staticVue-editor2.7/[ext]/[name]-[hash].[ext]',
},
},
sourcemap: true,
sourcemap: false,
},
// base: './',
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion examples/vue2.7/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"sourceMap": false,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand Down
8 changes: 0 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ echo "当前目录: $(pwd)"
echo "删除node_modules pnpm-lock.yaml pnpm-workspace.yaml dist目录"

rm -rfv node_modules pnpm-lock.yaml pnpm-workspace.yaml dist
ls -l

# 检查是否删除成功
if [ $? -eq 0 ]; then
echo "删除成功!"
else
echo "删除失败!"
fi

touch install.log
# 记录开始时间
Expand Down
105 changes: 74 additions & 31 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 comment on commit c104e53

@h7ml
Copy link
Member Author

@h7ml h7ml commented on c104e53 May 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for amis-adapter ready!

✅ Preview
https://amis-adapter-c8xvca9ok-h7mls-projects.vercel.app
https://amis-adapter.h7ml.cn

Built with commit c104e53.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.