Skip to content

Commit 626cccc

Browse files
authored
Merge pull request #176 from ryanylee/main
Types now working with SvelteKit 2
2 parents c60dd00 + bb96fcf commit 626cccc

Some content is hidden

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

64 files changed

+304
-230
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
node_modules
33
/build
44
/.svelte-kit
5-
/package
5+
/dist
66
.env
77
.env.*
88
!.env.example

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
node_modules
33
/build
44
/.svelte-kit
5-
/package
5+
/dist
66
.env
77
.env.*
88
!.env.example

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
node_modules
22
/build
33
/.svelte-kit
4-
/package
54
.env
65
.env.*
76
!.env.example

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
node_modules
33
/build
44
/.svelte-kit
5-
/package
5+
/dist
66
.env
77
.env.*
88
!.env.example

docs/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
node_modules
33
/build
44
/.svelte-kit
5-
/package
5+
/dist
66
.env
77
.env.*
88
!.env.example

jest.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ module.exports = {
1616
moduleNameMapper: {
1717
'^\\$lib/(.*)$': '<rootDir>/src/lib/$1',
1818
},
19-
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/package'],
19+
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/dist'],
2020
};

package-lock.json

Lines changed: 59 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@babel/preset-env": "^7.17.10",
4646
"@sveltejs/adapter-auto": "^1.0.0",
4747
"@sveltejs/kit": "^1.0.1",
48-
"@sveltejs/package": "^1.0.1",
48+
"@sveltejs/package": "^2.2.3",
4949
"@testing-library/jest-dom": "^5.16.4",
5050
"@testing-library/svelte": "^3.1.1",
5151
"@types/faker": "5",
@@ -76,7 +76,22 @@
7676
"peerDependencies": {
7777
"svelte": "^3 || ^4"
7878
},
79+
"files": [
80+
"dist",
81+
"!dist/**/*.test.*"
82+
],
83+
"exports": {
84+
".": {
85+
"types": "./dist/index.d.ts",
86+
"svelte": "./dist/index.js",
87+
"default": "./dist/index.js"
88+
},
89+
"./plugins": {
90+
"types": "./dist/plugins/index.d.ts",
91+
"svelte": "./dist/plugins/index.js",
92+
"default": "./dist/plugins/index.js"
93+
}
94+
},
7995
"type": "module",
80-
"svelte": "./index.js",
81-
"types": "./lib/index.d.ts"
96+
"svelte": "./dist/index.js"
8297
}

src/lib/bodyCells.DataBodyCell.render.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { DataBodyCell } from './bodyCells';
2-
import { DataBodyRow } from './bodyRows';
3-
import { DataColumn } from './columns';
4-
import type { TableState } from './createViewModel';
1+
import { DataBodyCell } from './bodyCells.js';
2+
import { DataBodyRow } from './bodyRows.js';
3+
import { DataColumn } from './columns.js';
4+
import type { TableState } from './createViewModel.js';
55

66
interface User {
77
firstName: string;

src/lib/bodyCells.DisplayBodyCell.render.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { DisplayBodyCell } from './bodyCells';
2-
import { DataBodyRow } from './bodyRows';
3-
import { DisplayColumn } from './columns';
4-
import type { TableState } from './createViewModel';
1+
import { DisplayBodyCell } from './bodyCells.js';
2+
import { DataBodyRow } from './bodyRows.js';
3+
import { DisplayColumn } from './columns.js';
4+
import type { TableState } from './createViewModel.js';
55

66
interface User {
77
firstName: string;

0 commit comments

Comments
 (0)