Skip to content

Commit

Permalink
Fix package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Jan 3, 2024
1 parent 1f36190 commit da019ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "velvette",
"version": "0.1.4-pre",
"description": "Make authoring CSS view-transitions easier",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"start": "node ./serve.js",
"build:classic": "npx esbuild src/index-classic.js --bundle --outfile=dist/browser/velvette.js --sourcemap --format=iife",
Expand Down Expand Up @@ -32,5 +32,9 @@
},
"script": "./dist/browser/velvette.min.js",
"default": "./src/index.js"
}
},
"files": [
"src/*", "dist/**/"
],
"type": "module"
}
3 changes: 2 additions & 1 deletion src/index-classic.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Velvette } from "./index.js";
import { Velvette, startViewTransition } from "./index.js";

Reflect.set(Velvette, "startViewTransition", startViewTransition);
Reflect.set(window, "Velvette", Velvette);

0 comments on commit da019ab

Please sign in to comment.