Skip to content

Commit

Permalink
@studio-freight/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Dec 28, 2023
1 parent 0216b10 commit 8f32584
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 29 deletions.
2 changes: 1 addition & 1 deletion packages/lenis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Lenis from '@studio-freight/lenis'
using scripts:

```html
<script src="https://unpkg.com/@studio-freight/[email protected].32/dist/lenis.min.js"></script>
<script src="https://unpkg.com/@studio-freight/[email protected].33/dist/lenis.min.js"></script>
```

<br>
Expand Down
2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.cjs.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/lenis/dist/lenis.esm.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/lenis/dist/lenis.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lenis/dist/lenis.umd.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/lenis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studio-freight/lenis",
"version": "1.0.32",
"version": "1.0.33",
"description": "Lenis is a smooth scroll library to normalize and smooth the scrolling experience across devices",
"repository": {
"type": "git",
Expand Down Expand Up @@ -32,15 +32,15 @@
"source": "src/index.js",
"main": "dist/lenis.umd.js",
"unpkg": "dist/lenis.min.js",
"module": "dist/lenis.esm.js",
"module": "dist/lenis.mjs",
"types": "dist/types/index.d.ts",
"exports": {
"./types": "./dist/types/index.d.ts",
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/lenis.esm.js"
"default": "./dist/lenis.mjs"
},
"require": {
"types": "./dist/types/index.d.ts",
Expand Down
41 changes: 22 additions & 19 deletions packages/lenis/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import json from "@rollup/plugin-json"
import terser from "@rollup/plugin-terser"
import json from '@rollup/plugin-json'
import terser from '@rollup/plugin-terser'

export default [
{
input: "src/index.js",
input: 'src/index.js',
output: [
{
file: "dist/lenis.cjs.js",
format: "cjs",
file: 'dist/lenis.cjs.js',
format: 'cjs',
strict: true,
name: "Lenis",
name: 'Lenis',
sourcemap: true,
exports: "auto",
exports: 'auto',
},
{
file: "dist/lenis.esm.js",
format: "esm",
file: 'dist/lenis.mjs',
format: 'esm',
strict: true,
name: "Lenis",
name: 'Lenis',
sourcemap: true,
},
{
file: "dist/lenis.umd.js",
format: "umd",
file: 'dist/lenis.umd.js',
format: 'umd',
strict: true,
name: "Lenis",
name: 'Lenis',
sourcemap: true,
},
{
file: "dist/lenis.min.js",
format: "umd",
file: 'dist/lenis.min.js',
format: 'umd',
strict: true,
name: "Lenis",
name: 'Lenis',
sourcemap: false,
plugins: [
terser({
Expand All @@ -40,8 +40,11 @@ export default [
],
},
],
plugins: [terser({
keep_classnames: true,
}), json()],
plugins: [
terser({
keep_classnames: true,
}),
json(),
],
},
]

1 comment on commit 8f32584

@github-actions
Copy link

Choose a reason for hiding this comment

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

"⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 83
🟢 Accessibility: 96
🟢 Best practices: 100
🟠 SEO: 67
🔴 PWA: 33

Lighthouse ran on https://lenis-r3f94sme2-studio-freight.vercel.app/"

Please sign in to comment.