Skip to content

Commit 22b3b94

Browse files
committed
[BREAKING] chore: change build output from lib -> dist
1 parent 1b5e6e4 commit 22b3b94

84 files changed

Lines changed: 380 additions & 380 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/funny-bats-do.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@svelte-put/preprocess-auto-slug': major
3+
'@svelte-put/clickoutside': major
4+
'@svelte-put/dragscroll': major
5+
'@svelte-put/intersect': major
6+
'@svelte-put/shortcut': major
7+
'@svelte-put/movable': major
8+
'@svelte-put/resize': major
9+
'@svelte-put/copy': major
10+
'@svelte-put/toc': major
11+
'@svelte-put/avatar': major
12+
'@svelte-put/modal': major
13+
'@svelte-put/select': minor
14+
'@svelte-put/transitions': minor
15+
---
16+
17+
[BREAKING] move build output from `lib` to `dist` to stay consistent of new changes from [@sveltejs/package@2](https://github.com/sveltejs/kit/releases/tag/%40sveltejs/package%402.0.0). Also fixes some api docs issues

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ node_modules
88
# testing
99
coverage
1010

11-
# next.js
11+
# built files
1212
.next/
1313
out/
1414
build/
15+
dist
1516

1617
# misc
1718
.DS_Store
@@ -32,7 +33,7 @@ build/
3233
temp/
3334

3435
# svelte-kit
35-
.svelte-kit/
36+
.svelte-kit
3637
.vercel
3738

3839
# vite temp

configs/apirc/base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
66
"projectFolder": ".",
7-
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts",
7+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts",
88
"bundledPackages": [],
99
"compiler": {
1010
"tsconfigFilePath": "<projectFolder>/tsconfig.json"

packages/actions/clickoutside/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/actions/clickoutside/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"extends": "@svelte-put/apirc/base.json",
44
"projectFolder": ".",
5-
"mainEntryPointFilePath": "<projectFolder>/lib/src/index.d.ts"
5+
"mainEntryPointFilePath": "<projectFolder>/dist/src/index.d.ts"
66
}

packages/actions/clickoutside/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "@svelte-put/clickoutside",
33
"version": "1.2.1",
44
"description": "Event for clicking outside a node",
5-
"main": "lib/index.js",
6-
"module": "lib/index.js",
7-
"types": "lib/src/index.d.ts",
5+
"main": "dist/index.js",
6+
"module": "dist/index.js",
7+
"types": "dist/src/index.d.ts",
88
"type": "module",
99
"publishConfig": {
1010
"access": "public"
1111
},
1212
"files": [
13-
"lib"
13+
"dist"
1414
],
1515
"scripts": {
1616
"lint": "eslint --ignore-path .gitignore \"./**/*/*{ts,js,cjs}\"",

packages/actions/clickoutside/rollup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config: RollupOptions = {
66
input: 'src/index.ts',
77
output: {
88
sourcemap: true,
9-
dir: './lib',
9+
dir: './dist',
1010
format: 'esm',
1111
},
1212
plugins: [

packages/actions/clickoutside/src/clickoutside.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2-
import type { Action, ActionReturn } from 'svelte/action';
1+
import type { Action } from 'svelte/action';
32

43
import { ClickOutsideAttributes, ClickOutsideParameters } from './clickoutside.types';
54

@@ -57,7 +56,7 @@ import { ClickOutsideAttributes, ClickOutsideParameters } from './clickoutside.t
5756
*
5857
* @param node - node outside of which `click` event will trigger `clickoutside`
5958
* @param parameters - instructions for `clickoutside` behavior
60-
* @returns svelte {@link ActionReturn}
59+
* @returns svelte {@link svelte/action#ActionReturn | ActionReturn}
6160
*/
6261
export const clickoutside: Action<
6362
HTMLElement,

packages/actions/clickoutside/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": ["src/**/*.ts", "rollup.config.ts"],
33
"extends": "@svelte-put/tsconfig/base.package.json",
44
"compilerOptions": {
5-
"outDir": "./lib",
6-
"declarationDir": "./lib",
5+
"outDir": "./dist",
6+
"declarationDir": "./dist"
77
}
88
}

packages/actions/copy/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)