@soleil-se/build-app 1.6.1 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/build-app",
3
- "version": "1.6.1",
3
+ "version": "1.7.1",
4
4
  "bin": {
5
5
  "build-app": "./bin/index.js",
6
6
  "sv-app-build": "./bin/index.js"
@@ -14,41 +14,41 @@
14
14
  },
15
15
  "homepage": "https://docs.soleil.se/build/app",
16
16
  "dependencies": {
17
- "@babel/core": "7.20.12",
18
- "@babel/preset-env": "7.20.2",
19
- "@rollup/plugin-alias": "4.0.3",
17
+ "@babel/core": "7.22.1",
18
+ "@babel/preset-env": "7.22.4",
19
+ "@rollup/plugin-alias": "5.0.0",
20
20
  "@rollup/plugin-babel": "6.0.3",
21
- "@rollup/plugin-commonjs": "24.0.1",
21
+ "@rollup/plugin-commonjs": "25.0.0",
22
22
  "@rollup/plugin-json": "6.0.0",
23
- "@rollup/plugin-node-resolve": "15.0.1",
23
+ "@rollup/plugin-node-resolve": "15.1.0",
24
24
  "@rollup/plugin-replace": "5.0.2",
25
- "@rollup/plugin-terser": "0.4.0",
25
+ "@rollup/plugin-terser": "0.4.3",
26
26
  "archiver": "5.3.1",
27
- "autoprefixer": "10.4.13",
27
+ "autoprefixer": "10.4.14",
28
28
  "babel-plugin-transform-async-to-promises": "0.8.18",
29
29
  "chalk": "5.2.0",
30
30
  "find-up": "6.3.0",
31
31
  "form-data": "4.0.0",
32
- "fs-extra": "11.1.0",
32
+ "fs-extra": "11.1.1",
33
33
  "glob": "^8.1.0",
34
34
  "got": "12.5.3",
35
35
  "gzip-size": "7.0.0",
36
36
  "lodash-es": "4.17.21",
37
- "postcss": "8.4.21",
37
+ "postcss": "8.4.24",
38
38
  "postcss-pxtorem": "6.0.0",
39
39
  "pretty-bytes": "6.1.0",
40
- "rollup": "3.15.0",
40
+ "rollup": "3.23.0",
41
41
  "rollup-plugin-cleanup": "3.2.1",
42
42
  "rollup-plugin-postcss": "4.0.2",
43
43
  "rollup-plugin-string": "3.0.0",
44
- "rollup-plugin-svelte": "7.1.2",
45
- "slash": "5.0.0",
46
- "svelte-preprocess": "5.0.1",
44
+ "rollup-plugin-svelte": "7.1.5",
45
+ "slash": "5.1.0",
46
+ "svelte-preprocess": "5.0.4",
47
47
  "@soleil-se/build-config": "1.1.3",
48
48
  "@soleil-se/build-utils": "1.4.3"
49
49
  },
50
50
  "devDependencies": {
51
- "svelte": "3.55.1"
51
+ "svelte": "3.59.1"
52
52
  },
53
53
  "scripts": {},
54
54
  "description": "Script for building WebApps, RESTApps and Widgets with Svelte in Sitevision.",
@@ -1,9 +1,13 @@
1
1
  import nodeResolve from '@rollup/plugin-node-resolve';
2
+ import { findUpSync } from 'find-up';
3
+
4
+ export default function getNodeResolvePlugin({ input } = {}) {
5
+ const additionalModulePath = findUpSync('node_modules', { cwd: input, type: 'directory' }) || [];
2
6
 
3
- export default function getNodeResolvePlugin() {
4
7
  return nodeResolve({
5
8
  mainFields: ['module', 'browser', 'main'],
6
9
  extensions: ['.js', '.mjs', '.json', '.svelte'],
10
+ modulePaths: [].concat(additionalModulePath),
7
11
  dedupe(importee) {
8
12
  return importee === 'svelte' || importee.startsWith('svelte/');
9
13
  },
package/rollup/client.js CHANGED
@@ -45,7 +45,7 @@ export default function rollupClient({
45
45
  bundled ? sitevision() : false,
46
46
  getReplaceClientPlugin(),
47
47
  getAliasClientPlugin(),
48
- getNodeResolvePlugin(),
48
+ getNodeResolvePlugin({ input }),
49
49
  getCommonjsPlugin(),
50
50
  await getSveltePlugin({ input, debug, emitCss: extractCss, hydratable }),
51
51
  getPostcssPlugin({ extractCss, debug }),
package/rollup/server.js CHANGED
@@ -40,7 +40,7 @@ export default function rollupServer({
40
40
  sitevision(),
41
41
  json(),
42
42
  getStringPlugin(),
43
- getNodeResolvePlugin(),
43
+ getNodeResolvePlugin({ input }),
44
44
  getCommonjsPlugin(),
45
45
  await getSveltePlugin({ input, emitCss: extractCss, ssr: true }),
46
46
  getPostcssPlugin({ extractCss, debug }),