@elliemae/pui-cli 8.40.1 → 8.40.2

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.
@@ -153,6 +153,7 @@ const updateManifestWithVersionInfo = async (dest) => {
153
153
  };
154
154
  const updateRuntimeFile = async (src, dest, version) => {
155
155
  const latestJSFolder = "latest/js";
156
+ const latestCSSFolder = "latest/css";
156
157
  const pipe = (0, import_node_util.promisify)(import_node_stream.pipeline);
157
158
  const results = await (0, import_fast_glob.default)([
158
159
  import_node_path.default.join(src, "runtime~app.*.js").replace(/\\/g, "/")
@@ -162,17 +163,25 @@ const updateRuntimeFile = async (src, dest, version) => {
162
163
  const runtimeFileName = import_node_path.default.basename(runtimeFilePath);
163
164
  const destRuntimeFilePath = import_node_path.default.join(dest, runtimeFileName);
164
165
  const runtimeFileData = await (0, import_promises.readFile)(runtimeFilePath, "utf8");
165
- if (runtimeFileData.includes(latestJSFolder)) {
166
+ if (runtimeFileData.includes(latestJSFolder) || runtimeFileData.includes(latestCSSFolder)) {
166
167
  await (0, import_promises.writeFile)(
167
168
  destRuntimeFilePath,
168
169
  runtimeFileData.replace(latestJSFolder, `${version}/js`)
169
170
  );
171
+ await (0, import_promises.writeFile)(
172
+ destRuntimeFilePath,
173
+ runtimeFileData.replace(latestCSSFolder, `${version}/css`)
174
+ );
170
175
  const sourceMapFile = `${runtimeFilePath}.map`;
171
176
  const sourcemap = await (0, import_promises.readFile)(sourceMapFile, "utf8");
172
177
  await (0, import_promises.writeFile)(
173
178
  `${destRuntimeFilePath}.map`,
174
179
  sourcemap.replace(latestJSFolder, `${version}/js`)
175
180
  );
181
+ await (0, import_promises.writeFile)(
182
+ `${destRuntimeFilePath}.map`,
183
+ sourcemap.replace(latestCSSFolder, `${version}/css`)
184
+ );
176
185
  const gzip = (0, import_node_zlib.createGzip)();
177
186
  let source = (0, import_node_fs.createReadStream)(destRuntimeFilePath);
178
187
  let destination = (0, import_node_fs.createWriteStream)(`${destRuntimeFilePath}.gz`);
@@ -122,6 +122,7 @@ const updateManifestWithVersionInfo = async (dest) => {
122
122
  };
123
123
  const updateRuntimeFile = async (src, dest, version) => {
124
124
  const latestJSFolder = "latest/js";
125
+ const latestCSSFolder = "latest/css";
125
126
  const pipe = promisify(pipeline);
126
127
  const results = await fg([
127
128
  path.join(src, "runtime~app.*.js").replace(/\\/g, "/")
@@ -131,17 +132,25 @@ const updateRuntimeFile = async (src, dest, version) => {
131
132
  const runtimeFileName = path.basename(runtimeFilePath);
132
133
  const destRuntimeFilePath = path.join(dest, runtimeFileName);
133
134
  const runtimeFileData = await readFile(runtimeFilePath, "utf8");
134
- if (runtimeFileData.includes(latestJSFolder)) {
135
+ if (runtimeFileData.includes(latestJSFolder) || runtimeFileData.includes(latestCSSFolder)) {
135
136
  await writeFile(
136
137
  destRuntimeFilePath,
137
138
  runtimeFileData.replace(latestJSFolder, `${version}/js`)
138
139
  );
140
+ await writeFile(
141
+ destRuntimeFilePath,
142
+ runtimeFileData.replace(latestCSSFolder, `${version}/css`)
143
+ );
139
144
  const sourceMapFile = `${runtimeFilePath}.map`;
140
145
  const sourcemap = await readFile(sourceMapFile, "utf8");
141
146
  await writeFile(
142
147
  `${destRuntimeFilePath}.map`,
143
148
  sourcemap.replace(latestJSFolder, `${version}/js`)
144
149
  );
150
+ await writeFile(
151
+ `${destRuntimeFilePath}.map`,
152
+ sourcemap.replace(latestCSSFolder, `${version}/css`)
153
+ );
145
154
  const gzip = createGzip();
146
155
  let source = createReadStream(destRuntimeFilePath);
147
156
  let destination = createWriteStream(`${destRuntimeFilePath}.gz`);