Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/test-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Packages

on: [push, pull_request]

permissions:
contents: read

jobs:
test:
name: Test Packages
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7

- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true

- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm

- name: Install dependencies
run: bundle exec bake web:packages:install frozen=true

- name: Check static packages
run: bundle exec bake web:packages:check
7 changes: 3 additions & 4 deletions lib/utopia/project/import_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@

module Utopia
module Project
IMPORT_MAP = Utopia::ImportMap.build(base: "/_components/") do |map|
map.import("mermaid", "./mermaid/mermaid.esm.min.mjs")
map.import("@socketry/syntax", "./@socketry/syntax/Syntax.js")
end
IMPORT_MAP = Utopia::ImportMap.load_manifest(
File.expand_path("../../../public/_components", __dir__)
)
end
end
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
"@socketry/syntax": "^0.6.1",
"mermaid": "^11.16.1"
},
"utopia": {
"components": {
"web-packages": {
"packages": {
"@socketry/syntax": {
"imports": {
"@socketry/syntax": "Syntax.js"
}
},
"mermaid": {
"include": [
"mermaid.esm.min.mjs",
"chunks/mermaid.esm.min/**/*.mjs"
]
],
"imports": {
"mermaid": "mermaid.esm.min.mjs"
}
}
}
}
Expand Down
Loading
Loading