Skip to content

Commit 6b651ee

Browse files
committed
fix(package.json): add dist to files so that it's available via unpkg
1 parent d7221d2 commit 6b651ee

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"files": [
2525
"lib/**",
26+
"dist/**",
2627
"src/**"
2728
],
2829
"homepage": "https://github.com/Planning-nl/flexbox.js#readme",

tests/test.autosize.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,41 +84,35 @@ describe("layout", () => {
8484
});
8585
});
8686

87-
describe('stretching an autosized container', () => {
87+
describe("stretching an autosized container", () => {
8888
flexTestUtils.addMochaTestForAnnotatedStructure("column: autosize w,h", {
8989
flex: { enabled: true, direction: "column" },
9090
w: 500,
9191
h: 100,
9292
r: [0, 0, 500, 100],
9393
children: [
9494
{
95-
flex: {enabled: true, direction: "column"},
95+
flex: { enabled: true, direction: "column" },
9696
r: [0, 0, 500, 100],
97-
children: [
98-
{w: 100, h: 100, r: [0, 0, 100, 100]}
99-
]
100-
}
97+
children: [{ w: 100, h: 100, r: [0, 0, 100, 100] }],
98+
},
10199
],
102100
});
103101
});
104102

105-
106-
describe('growing an autosized container', () => {
103+
describe("growing an autosized container", () => {
107104
flexTestUtils.addMochaTestForAnnotatedStructure("column: autosize w,h", {
108105
flex: { enabled: true, direction: "row" },
109106
w: 500,
110107
r: [0, 0, 500, 100],
111108
children: [
112109
{
113-
flex: {enabled: true},
114-
flexItem: {grow: 1},
110+
flex: { enabled: true },
111+
flexItem: { grow: 1 },
115112
r: [0, 0, 500, 100],
116-
children: [
117-
{w: 100, h: 100, r: [0, 0, 100, 100]}
118-
]
119-
}
113+
children: [{ w: 100, h: 100, r: [0, 0, 100, 100] }],
114+
},
120115
],
121116
});
122117
});
123-
124118
});

0 commit comments

Comments
 (0)