@ixon-cdk/svelte-builder 1.2.0-next.0 → 1.2.0-next.2
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 +5 -2
- package/package.json +9 -9
package/browser.js
CHANGED
|
@@ -5,6 +5,7 @@ const { svelte } = require('@sveltejs/vite-plugin-svelte');
|
|
|
5
5
|
const preprocess = require('svelte-preprocess');
|
|
6
6
|
const typescript = require('@rollup/plugin-typescript');
|
|
7
7
|
const {
|
|
8
|
+
dirContains,
|
|
8
9
|
getRootDir,
|
|
9
10
|
pascalCase,
|
|
10
11
|
moduleExists,
|
|
@@ -57,6 +58,7 @@ async function _build(inputFile, outputFile, tag, assets, production, watch) {
|
|
|
57
58
|
},
|
|
58
59
|
},
|
|
59
60
|
},
|
|
61
|
+
define: { 'process.env': {} },
|
|
60
62
|
write: true,
|
|
61
63
|
plugins: [
|
|
62
64
|
svelte({
|
|
@@ -74,8 +76,9 @@ async function _build(inputFile, outputFile, tag, assets, production, watch) {
|
|
|
74
76
|
const buildConfig = { ...config };
|
|
75
77
|
|
|
76
78
|
if (moduleExists('@tsconfig/svelte/package.json')) {
|
|
77
|
-
const tsConfig =
|
|
78
|
-
|
|
79
|
+
const tsConfig = path.join(inputDir, 'tsconfig.json');
|
|
80
|
+
// @rollup/plugin-typescript complains about compiler options, when the input directory doesn't contain any `.ts` files.
|
|
81
|
+
if (fs.existsSync(tsConfig) && dirContains(inputDir, '**/*.ts')) {
|
|
79
82
|
const typescriptPlugin = typescript({
|
|
80
83
|
sourceMap: !production,
|
|
81
84
|
outDir: outputDir,
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixon-cdk/svelte-builder",
|
|
3
|
-
"version": "1.2.0-next.
|
|
3
|
+
"version": "1.2.0-next.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@rollup/plugin-typescript": "^
|
|
10
|
-
"@sveltejs/vite-plugin-svelte": "^1.
|
|
9
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
10
|
+
"@sveltejs/vite-plugin-svelte": "^1.4.0",
|
|
11
11
|
"@tsconfig/svelte": "^3.0.0",
|
|
12
12
|
"is-potential-custom-element-name": "^1.0.1",
|
|
13
|
-
"sass": "^1.
|
|
14
|
-
"svelte": "^3.
|
|
15
|
-
"svelte-check": "^
|
|
16
|
-
"svelte-preprocess": "^
|
|
17
|
-
"vite": "
|
|
13
|
+
"sass": "^1.58.3",
|
|
14
|
+
"svelte": "^3.55.1",
|
|
15
|
+
"svelte-check": "^3.1.0",
|
|
16
|
+
"svelte-preprocess": "^5.0.1",
|
|
17
|
+
"vite": "4.1.4"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@ixon-cdk/core": "^1.2.0-next.
|
|
20
|
+
"@ixon-cdk/core": "^1.2.0-next.2"
|
|
21
21
|
}
|
|
22
22
|
}
|