Skip to content

Commit edfc2d2

Browse files
Merge pull request #26 from trash-and-fire/reorganize_exports
Reorganize exports
2 parents 0f668a1 + 0c18733 commit edfc2d2

32 files changed

+488
-519
lines changed

gulpfile.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,20 @@ function typescript() {
8282
return spawn('tsc', ['--project', 'tsconfig.build.json'], { stdio: 'inherit' });
8383
}
8484

85+
function index() {
86+
return src(['./dist/index.d.ts'])
87+
.pipe(transform('utf8', (content) => {
88+
return String(content).replace(/\.interface'/g, '.svelte\'');
89+
}))
90+
.pipe(dest('./dist'));
91+
}
92+
8593
function assets() {
8694
return src(['README.md'])
8795
.pipe(dest('./dist'));
8896
}
8997

90-
const build = series(wipe, typescript, parallel(manifest, svelte, typings, assets), clean);
98+
const build = series(wipe, typescript, parallel(manifest, svelte, typings, assets), index, clean);
9199

92100
function samples(...args) {
93101
const components = new Map();

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"files": [
2727
"**"
2828
],
29+
"sideEffects": false,
2930
"devDependencies": {
3031
"@babel/core": "7.14.0",
3132
"@babel/preset-env": "7.14.1",

0 commit comments

Comments
 (0)