@ixon-cdk/svelte-builder 1.2.1 → 1.3.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser.js +15 -6
- package/package.json +2 -2
package/browser.js
CHANGED
|
@@ -98,7 +98,10 @@ async function _build(inputFile, outputFile, tag, assets, production, watch) {
|
|
|
98
98
|
|
|
99
99
|
if (!watch) {
|
|
100
100
|
try {
|
|
101
|
-
await build(buildConfig)
|
|
101
|
+
await build(buildConfig).catch(() => {
|
|
102
|
+
fs.unlinkSync(entryFileName);
|
|
103
|
+
process.exit(1);
|
|
104
|
+
});
|
|
102
105
|
copyAssets(assets, inputDir, outputDir);
|
|
103
106
|
fs.unlinkSync(entryFileName);
|
|
104
107
|
} catch (e) {
|
|
@@ -126,11 +129,17 @@ async function _build(inputFile, outputFile, tag, assets, production, watch) {
|
|
|
126
129
|
function typeCheck({ tsConfig, inputDir }) {
|
|
127
130
|
return {
|
|
128
131
|
writeBundle() {
|
|
129
|
-
require('child_process')
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
require('child_process')
|
|
133
|
+
.spawn('svelte-check', ['--tsconfig', tsConfig], {
|
|
134
|
+
stdio: ['ignore', 'inherit', 'inherit'],
|
|
135
|
+
shell: true,
|
|
136
|
+
cwd: inputDir,
|
|
137
|
+
})
|
|
138
|
+
.once('close', code => {
|
|
139
|
+
if (code === 1) {
|
|
140
|
+
process.exit(1);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
134
143
|
},
|
|
135
144
|
};
|
|
136
145
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixon-cdk/svelte-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-next.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"vite": "4.1.5"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@ixon-cdk/core": "^1.
|
|
20
|
+
"@ixon-cdk/core": "^1.3.0-next.1"
|
|
21
21
|
}
|
|
22
22
|
}
|