Skip to content

Commit

Permalink
Fix script errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjerleke committed Oct 23, 2023
1 parent 6bd405c commit 88b3c62
Show file tree
Hide file tree
Showing 14 changed files with 223 additions and 204 deletions.
8 changes: 4 additions & 4 deletions packages/embla-carousel-auto-height/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"./package.json": "./package.json",
".": {
"import": {
"default": "./esm/embla-carousel-auto-height.esm.js",
"types": "./esm/index.d.ts"
"types": "./esm/index.d.ts",
"default": "./esm/embla-carousel-auto-height.esm.js"
},
"require": {
"default": "./cjs/embla-carousel-auto-height.cjs.js",
"types": "./cjs/index.d.ts"
"types": "./cjs/index.d.ts",
"default": "./cjs/embla-carousel-auto-height.cjs.js"
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions packages/embla-carousel-auto-height/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import packageJson from './package.json'
import {
PACKAGE_FORMATS,
CONFIG_BABEL,
CONFIG_TYPESCRIPT,
CONFIG_GLOBALS,
babel,
typescript,
resolve,
terser,
createBuildPath,
kebabToPascalCase
} from '../../rollup.config'

Expand All @@ -15,23 +17,23 @@ export default [
input: 'src/index.ts',
output: [
{
file: `${packageJson.name}.cjs.js`,
format: 'cjs',
file: createBuildPath(packageJson, PACKAGE_FORMATS.CJS),
format: PACKAGE_FORMATS.CJS,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: true,
exports: 'auto'
},
{
file: `${packageJson.name}.esm.js`,
format: 'esm',
file: createBuildPath(packageJson, PACKAGE_FORMATS.ESM),
format: PACKAGE_FORMATS.ESM,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: true
},
{
file: `${packageJson.name}.umd.js`,
format: 'umd',
file: createBuildPath(packageJson, PACKAGE_FORMATS.UMD),
format: PACKAGE_FORMATS.UMD,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: false,
Expand Down
8 changes: 4 additions & 4 deletions packages/embla-carousel-autoplay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"./package.json": "./package.json",
".": {
"import": {
"default": "./esm/embla-carousel-autoplay.esm.js",
"types": "./esm/index.d.ts"
"types": "./esm/index.d.ts",
"default": "./esm/embla-carousel-autoplay.esm.js"
},
"require": {
"default": "./cjs/embla-carousel-autoplay.cjs.js",
"types": "./cjs/index.d.ts"
"types": "./cjs/index.d.ts",
"default": "./cjs/embla-carousel-autoplay.cjs.js"
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions packages/embla-carousel-autoplay/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import packageJson from './package.json'
import {
PACKAGE_FORMATS,
CONFIG_BABEL,
CONFIG_TYPESCRIPT,
CONFIG_GLOBALS,
babel,
typescript,
resolve,
terser,
createBuildPath,
kebabToPascalCase
} from '../../rollup.config'

Expand All @@ -15,23 +17,23 @@ export default [
input: 'src/index.ts',
output: [
{
file: `${packageJson.name}.cjs.js`,
format: 'cjs',
file: createBuildPath(packageJson, PACKAGE_FORMATS.CJS),
format: PACKAGE_FORMATS.CJS,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: true,
exports: 'auto'
},
{
file: `${packageJson.name}.esm.js`,
format: 'esm',
file: createBuildPath(packageJson, PACKAGE_FORMATS.ESM),
format: PACKAGE_FORMATS.ESM,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: true
},
{
file: `${packageJson.name}.umd.js`,
format: 'umd',
file: createBuildPath(packageJson, PACKAGE_FORMATS.UMD),
format: PACKAGE_FORMATS.UMD,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: false,
Expand Down
8 changes: 4 additions & 4 deletions packages/embla-carousel-class-names/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"./package.json": "./package.json",
".": {
"import": {
"default": "./esm/embla-carousel-class-names.esm.js",
"types": "./esm/index.d.ts"
"types": "./esm/index.d.ts",
"default": "./esm/embla-carousel-class-names.esm.js"
},
"require": {
"default": "./cjs/embla-carousel-class-names.cjs.js",
"types": "./cjs/index.d.ts"
"types": "./cjs/index.d.ts",
"default": "./cjs/embla-carousel-class-names.cjs.js"
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions packages/embla-carousel-class-names/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import packageJson from './package.json'
import {
PACKAGE_FORMATS,
CONFIG_BABEL,
CONFIG_TYPESCRIPT,
CONFIG_GLOBALS,
babel,
typescript,
resolve,
terser,
createBuildPath,
kebabToPascalCase
} from '../../rollup.config'

Expand All @@ -15,23 +17,23 @@ export default [
input: 'src/index.ts',
output: [
{
file: `${packageJson.name}.cjs.js`,
format: 'cjs',
file: createBuildPath(packageJson, PACKAGE_FORMATS.CJS),
format: PACKAGE_FORMATS.CJS,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: true,
exports: 'auto'
},
{
file: `${packageJson.name}.esm.js`,
format: 'esm',
file: createBuildPath(packageJson, PACKAGE_FORMATS.ESM),
format: PACKAGE_FORMATS.ESM,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: true
},
{
file: `${packageJson.name}.umd.js`,
format: 'umd',
file: createBuildPath(packageJson, PACKAGE_FORMATS.UMD),
format: PACKAGE_FORMATS.UMD,
globals: CONFIG_GLOBALS,
strict: true,
sourcemap: false,
Expand Down
8 changes: 4 additions & 4 deletions packages/embla-carousel-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
"./package.json": "./package.json",
".": {
"import": {
"default": "./esm/embla-carousel-react.esm.js",
"types": "./esm/index.d.ts"
"types": "./esm/index.d.ts",
"default": "./esm/embla-carousel-react.esm.js"
},
"require": {
"default": "./cjs/embla-carousel-react.cjs.js",
"types": "./cjs/index.d.ts"
"types": "./cjs/index.d.ts",
"default": "./cjs/embla-carousel-react.cjs.js"
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/embla-carousel-reactive-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"./package.json": "./package.json",
".": {
"import": {
"default": "./esm/embla-carousel-reactive-utils.esm.js",
"types": "./esm/index.d.ts"
"types": "./esm/index.d.ts",
"default": "./esm/embla-carousel-reactive-utils.esm.js"
},
"require": {
"default": "./cjs/embla-carousel-reactive-utils.cjs.js",
"types": "./cjs/index.d.ts"
"types": "./cjs/index.d.ts",
"default": "./cjs/embla-carousel-reactive-utils.cjs.js"
}
}
}
Expand Down
156 changes: 79 additions & 77 deletions packages/embla-carousel-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,80 @@
{
"name": "embla-carousel-svelte",
"version": "8.0.0-rc14",
"author": "David Jerleke",
"description": "A lightweight carousel library with fluid motion and great swipe precision",
"repository": {
"type": "git",
"url": "git+https://github.com/davidjerleke/embla-carousel"
},
"bugs": {
"url": "https://github.com/davidjerleke/embla-carousel/issues"
},
"homepage": "https://www.embla-carousel.com",
"license": "MIT",
"keywords": [
"slider",
"carousel",
"slideshow",
"gallery",
"lightweight",
"touch",
"javascript",
"typescript",
"react",
"vue",
"svelte"
],
"main": "embla-carousel-svelte.umd.js",
"unpkg": "embla-carousel-svelte.umd.js",
"module": "embla-carousel-svelte.esm.js",
"types": "index.d.ts",
"sideEffects": false,
"files": [
"embla-carousel-svelte*",
"components/**/*",
"index.d.ts"
],
"scripts": {
"test": "echo \"Info: no tests specified\" && exit 0",
"build": "rollup -c",
"start": "rollup -c --watch",
"eslint:report": "eslint \"src/**/*.{js,tsx,ts}\""
},
"devDependencies": {
"@types/jest": "^27.4.0",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.0",
"prettier": "2.5.1",
"rollup": "^2.68.0",
"svelte": "^3.49.0",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
},
"dependencies": {
"embla-carousel": "8.0.0-rc14",
"embla-carousel-reactive-utils": "8.0.0-rc14"
},
"peerDependencies": {
"svelte": "^3.49.0 || ^4.0.0"
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"default": "./esm/embla-carousel-svelte.esm.js",
"types": "./esm/index.d.ts"
},
"require": {
"default": "./cjs/embla-carousel-svelte.cjs.js",
"types": "./cjs/index.d.ts"
}
}
}
}
"name": "embla-carousel-svelte",
"version": "8.0.0-rc14",
"author": "David Jerleke",
"description": "A lightweight carousel library with fluid motion and great swipe precision",
"repository": {
"type": "git",
"url": "git+https://github.com/davidjerleke/embla-carousel"
},
"bugs": {
"url": "https://github.com/davidjerleke/embla-carousel/issues"
},
"homepage": "https://www.embla-carousel.com",
"license": "MIT",
"keywords": [
"slider",
"carousel",
"slideshow",
"gallery",
"lightweight",
"touch",
"javascript",
"typescript",
"react",
"vue",
"svelte"
],
"main": "embla-carousel-svelte.umd.js",
"unpkg": "embla-carousel-svelte.umd.js",
"module": "embla-carousel-svelte.esm.js",
"types": "index.d.ts",
"sideEffects": false,
"files": [
"embla-carousel-svelte*",
"components/**/*",
"index.d.ts",
"esm/**/*",
"cjs/**/*"
],
"scripts": {
"test": "echo \"Info: no tests specified\" && exit 0",
"build": "rollup -c",
"start": "rollup -c --watch",
"eslint:report": "eslint \"src/**/*.{js,tsx,ts}\""
},
"devDependencies": {
"@types/jest": "^27.4.0",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.0",
"prettier": "2.5.1",
"rollup": "^2.68.0",
"svelte": "^3.49.0",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
},
"dependencies": {
"embla-carousel": "8.0.0-rc14",
"embla-carousel-reactive-utils": "8.0.0-rc14"
},
"peerDependencies": {
"svelte": "^3.49.0 || ^4.0.0"
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/embla-carousel-svelte.esm.js"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/embla-carousel-svelte.cjs.js"
}
}
}
}
Loading

0 comments on commit 88b3c62

Please sign in to comment.