@fluffjs/cli 0.4.2 → 0.4.3

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/Generator.js CHANGED
@@ -102,8 +102,8 @@ export class Generator {
102
102
  private: true,
103
103
  type: 'module',
104
104
  scripts: {
105
- build: 'npx @fluffjs/cli build',
106
- serve: 'npx @fluffjs/cli serve'
105
+ build: 'fluff build',
106
+ serve: 'fluff serve'
107
107
  },
108
108
  dependencies: {
109
109
  '@fluffjs/fluff': `^${cliVersion}`
@@ -0,0 +1,6 @@
1
+ export interface PeerDependency {
2
+ name: string;
3
+ version: string;
4
+ }
5
+ export declare function getCliPeerDependencies(): PeerDependency[];
6
+ //# sourceMappingURL=PeerDependencies.d.ts.map
@@ -0,0 +1,7 @@
1
+ export function getCliPeerDependencies() {
2
+ return [
3
+ { name: 'cssnano', version: '^7.1.2' },
4
+ { name: 'postcss', version: '^8.5.6' },
5
+ { name: 'jsesc', version: '^3.1.0' }
6
+ ];
7
+ }
@@ -137,7 +137,7 @@ export function fluffPlugin(options) {
137
137
  plugins: ['typescript', 'decorators']
138
138
  });
139
139
  const exprTableImport = t.importDeclaration([], t.stringLiteral(VIRTUAL_EXPR_TABLE_ID));
140
- ast.program.body.push(exprTableImport);
140
+ ast.program.body.unshift(exprTableImport);
141
141
  const output = generate(ast, { compact: false });
142
142
  return {
143
143
  contents: output.code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluffjs/cli",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -29,23 +29,23 @@
29
29
  "@babel/preset-typescript": "^7.28.5",
30
30
  "@babel/traverse": "^7.28.6",
31
31
  "@babel/types": "^7.28.6",
32
+ "cssnano": "^7.1.2",
32
33
  "esbuild": "^0.27.2",
33
34
  "he": "^1.2.0",
34
35
  "html-minifier-terser": "^7.2.0",
35
36
  "http-proxy": "^1.18.1",
37
+ "jsesc": "^3.1.0",
36
38
  "parse5": "^8.0.0",
37
39
  "parse5-sax-parser": "^8.0.0",
38
40
  "picomatch": "^4.0.2",
41
+ "postcss": "^8.5.6",
39
42
  "source-map": "^0.7.6",
40
43
  "tslib": "^2.3.0"
41
44
  },
42
45
  "devDependencies": {
43
46
  "@types/he": "^1.2.3",
44
47
  "@types/http-proxy": "^1.17.16",
45
- "@types/jsesc": "^3.0.3",
46
- "cssnano": "^7.1.2",
47
- "jsesc": "^3.1.0",
48
- "postcss": "^8.5.6"
48
+ "@types/jsesc": "^3.0.3"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"