@fougere/vite 0.8.2-alpha.0 → 0.8.4-alpha.0
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/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/index.ts +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Plugin } from 'vite';
|
|
2
|
-
import { type Conventions } from '@fougere/core
|
|
2
|
+
import { type Conventions } from '@fougere/core';
|
|
3
3
|
/** The entity names a build must not rename, read off the filesystem. */
|
|
4
4
|
export declare function entityNamesIn(root: string, conventions?: Conventions): string[];
|
|
5
|
-
export { RUNTIME_PACKAGES } from '@fougere/
|
|
5
|
+
export { RUNTIME_PACKAGES } from '@fougere/compiler';
|
|
6
6
|
export interface FougereViteOptions {
|
|
7
7
|
/** Extra packages the boot loads at runtime, added to the defaults. */
|
|
8
8
|
external?: string[];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,eAAe,CAAC;AAEtE,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,GAAE,WAAiC,GAAG,MAAM,EAAE,CAepG;AAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,iDAAiD;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,wBAAgB,OAAO,CAAC,OAAO,GAAE,kBAAuB,GAAG,MAAM,CA+BhE"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** `@fougere/vite` — the one place a Vite-built host is told what a Fougere app needs. */
|
|
2
2
|
import { readdirSync, existsSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import {
|
|
4
|
+
import { RUNTIME_PACKAGES } from '@fougere/compiler';
|
|
5
|
+
import { DEFAULT_CONVENTIONS } from '@fougere/core';
|
|
5
6
|
/** The entity names a build must not rename, read off the filesystem. */
|
|
6
7
|
export function entityNamesIn(root, conventions = DEFAULT_CONVENTIONS) {
|
|
7
8
|
const frondsDir = join(root, conventions.fronds);
|
|
@@ -22,7 +23,7 @@ export function entityNamesIn(root, conventions = DEFAULT_CONVENTIONS) {
|
|
|
22
23
|
}
|
|
23
24
|
return [...names];
|
|
24
25
|
}
|
|
25
|
-
export { RUNTIME_PACKAGES } from '@fougere/
|
|
26
|
+
export { RUNTIME_PACKAGES } from '@fougere/compiler';
|
|
26
27
|
export function fougere(options = {}) {
|
|
27
28
|
const external = [...new Set([...RUNTIME_PACKAGES, ...(options.external ?? [])])];
|
|
28
29
|
return {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0FA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,CAAC,CAAC,CAAC;qBAC/F;iBACF,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fougere/vite",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4-alpha.0",
|
|
4
4
|
"description": "The Vite plugin: what any Vite-built host must know to run a Fougere app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fougere",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"terser": "^5.44.0",
|
|
34
|
-
"@fougere/core": "0.8.
|
|
34
|
+
"@fougere/core": "0.8.4-alpha.0",
|
|
35
|
+
"@fougere/compiler": "0.8.4-alpha.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"vite": "^8.0.0",
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { readdirSync, existsSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import type { Plugin } from 'vite';
|
|
5
|
-
import {
|
|
5
|
+
import { RUNTIME_PACKAGES } from '@fougere/compiler';
|
|
6
|
+
import { type Conventions, DEFAULT_CONVENTIONS } from '@fougere/core';
|
|
6
7
|
|
|
7
8
|
/** The entity names a build must not rename, read off the filesystem. */
|
|
8
9
|
export function entityNamesIn(root: string, conventions: Conventions = DEFAULT_CONVENTIONS): string[] {
|
|
@@ -22,7 +23,7 @@ export function entityNamesIn(root: string, conventions: Conventions = DEFAULT_C
|
|
|
22
23
|
return [...names];
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
export { RUNTIME_PACKAGES } from '@fougere/
|
|
26
|
+
export { RUNTIME_PACKAGES } from '@fougere/compiler';
|
|
26
27
|
|
|
27
28
|
export interface FougereViteOptions {
|
|
28
29
|
/** Extra packages the boot loads at runtime, added to the defaults. */
|