@danielx/civet 0.7.24 → 0.7.26

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.
@@ -119,6 +119,14 @@ var rawPlugin = (options = {}, meta) => {
119
119
  name: "unplugin-civet",
120
120
  enforce: "pre",
121
121
  async buildStart() {
122
+ const civetConfigPath = "config" in options ? options.config : await (0, import_config.findInDir)(process.cwd());
123
+ if (civetConfigPath) {
124
+ compileOptions = await (0, import_config.loadConfig)(civetConfigPath);
125
+ }
126
+ compileOptions.parseOptions = {
127
+ ...compileOptions.parseOptions,
128
+ ...options.parseOptions
129
+ };
122
130
  if (transformTS || options.ts === "tsc") {
123
131
  let mogrify = function(key) {
124
132
  if (key in config && Array.isArray(config[key])) {
@@ -132,14 +140,6 @@ var rawPlugin = (options = {}, meta) => {
132
140
  return;
133
141
  };
134
142
  const ts = await tsPromise;
135
- const civetConfigPath = "config" in options ? options.config : await (0, import_config.findInDir)(process.cwd());
136
- if (civetConfigPath) {
137
- compileOptions = await (0, import_config.loadConfig)(civetConfigPath);
138
- }
139
- compileOptions.parseOptions = {
140
- ...compileOptions.parseOptions,
141
- ...options.parseOptions
142
- };
143
143
  const tsConfigPath = ts.findConfigFile(process.cwd(), ts.sys.fileExists);
144
144
  if (!tsConfigPath) {
145
145
  throw new Error("Could not find 'tsconfig.json'");
@@ -87,6 +87,14 @@ var rawPlugin = (options = {}, meta) => {
87
87
  name: "unplugin-civet",
88
88
  enforce: "pre",
89
89
  async buildStart() {
90
+ const civetConfigPath = "config" in options ? options.config : await findInDir(process.cwd());
91
+ if (civetConfigPath) {
92
+ compileOptions = await loadConfig(civetConfigPath);
93
+ }
94
+ compileOptions.parseOptions = {
95
+ ...compileOptions.parseOptions,
96
+ ...options.parseOptions
97
+ };
90
98
  if (transformTS || options.ts === "tsc") {
91
99
  let mogrify = function(key) {
92
100
  if (key in config && Array.isArray(config[key])) {
@@ -100,14 +108,6 @@ var rawPlugin = (options = {}, meta) => {
100
108
  return;
101
109
  };
102
110
  const ts = await tsPromise;
103
- const civetConfigPath = "config" in options ? options.config : await findInDir(process.cwd());
104
- if (civetConfigPath) {
105
- compileOptions = await loadConfig(civetConfigPath);
106
- }
107
- compileOptions.parseOptions = {
108
- ...compileOptions.parseOptions,
109
- ...options.parseOptions
110
- };
111
111
  const tsConfigPath = ts.findConfigFile(process.cwd(), ts.sys.fileExists);
112
112
  if (!tsConfigPath) {
113
113
  throw new Error("Could not find 'tsconfig.json'");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
3
  "type": "commonjs",
4
- "version": "0.7.24",
4
+ "version": "0.7.26",
5
5
  "description": "CoffeeScript style syntax for TypeScript",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/main.mjs",
@@ -67,6 +67,7 @@
67
67
  },
68
68
  "files": [
69
69
  "dist/",
70
+ "CHANGELOG.md",
70
71
  "register.js"
71
72
  ],
72
73
  "engines": {