Skip to content

Commit

Permalink
🐛 Fix import of lib from node path
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckcarpenter committed Mar 18, 2024
1 parent 0b30682 commit 0c90c85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"dev": "pnpm run copy && astro dev",
"start": "astro dev",
"copy": "cp -r ../shepherd.js/dist ./public",
"prebuild": "pnpm run copy",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
Expand Down
9 changes: 3 additions & 6 deletions landing/src/layouts/MainPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ const shepherdIncludeCode = `
<script type="module" src="shepherd.js/dist/shepherd.js"></script>
`;
const { PUBLIC_SHEPHERD_PUBLIC_KEY, PUBLIC_SHEPHERD_FRONTEND_API } = import.meta
.env;
---

<Base data-testthing={PUBLIC_SHEPHERD_FRONTEND_API}>
<Base>
<Header title={SITE_TITLE} isHome={isHome} />
<main>
<div class='font-heading mt-8 text-6xl text-center uppercase w-full'>
Expand Down Expand Up @@ -177,9 +174,9 @@ const { PUBLIC_SHEPHERD_PUBLIC_KEY, PUBLIC_SHEPHERD_FRONTEND_API } = import.meta
</Base>

<!-- Welcome page -->
<script type='module'>
<script type='module' is:inline>
'use strict';
import Shepherd from './node_modules/shepherd.js/dist/shepherd.js';
import Shepherd from './dist/shepherd.js';

(function () {
function init() {
Expand Down

0 comments on commit 0c90c85

Please sign in to comment.