coralite-scripts 0.28.4 → 0.28.5

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/bin/index.js CHANGED
@@ -65,6 +65,7 @@ if (mode === 'dev') {
65
65
  components: config.components,
66
66
  pages: config.pages,
67
67
  plugins: config.plugins,
68
+ assets: config.assets,
68
69
  output: config.output
69
70
  })
70
71
  await coralite.initialise()
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @import {CoraliteScriptConfig} from '../types/index.js'
3
+ */
1
4
  /**
2
5
  * Defines the Coralite configuration for the project.
3
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../libs/config.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,sCAzBW,oBAAoB,GAClB,oBAAoB,CA+HhC;0CA1IsC,mBAAmB"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../libs/config.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,sCAzBW,oBAAoB,GAClB,oBAAoB,CA6HhC;0CAvIsC,mBAAmB"}
package/libs/config.js CHANGED
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * @import {CoraliteScriptConfig} from '../types/index.js'
3
3
  */
4
- import { staticAssetPlugin } from 'coralite/plugins'
5
4
 
6
5
  /**
7
6
  * Defines the Coralite configuration for the project.
@@ -132,8 +131,6 @@ export function defineConfig (options) {
132
131
  if (!Array.isArray(options.assets)) {
133
132
  throw new Error('Configuration "assets" must be an array')
134
133
  }
135
- options.plugins = options.plugins || []
136
- options.plugins.push(staticAssetPlugin(options.assets))
137
134
  }
138
135
 
139
136
  return options
package/libs/server.js CHANGED
@@ -37,6 +37,7 @@ async function server (config, options) {
37
37
  components: config.components,
38
38
  pages: config.pages,
39
39
  plugins: config.plugins,
40
+ assets: config.assets,
40
41
  ignoreByAttribute: config.ignoreByAttribute,
41
42
  skipRenderByAttribute: config.skipRenderByAttribute,
42
43
  mode: 'development',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coralite-scripts",
3
- "version": "0.28.4",
3
+ "version": "0.28.5",
4
4
  "description": "Configuration and scripts for Create Coralite.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,7 +58,7 @@
58
58
  "portfinder": "^1.0.38",
59
59
  "postcss": "^8.5.6",
60
60
  "sass": "^1.91.0",
61
- "coralite": "0.28.2"
61
+ "coralite": "0.28.3"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "premove dist && pnpm build-types",