@elliemae/pui-cli 8.40.2 → 8.40.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.
@@ -166,21 +166,13 @@ const updateRuntimeFile = async (src, dest, version) => {
166
166
  if (runtimeFileData.includes(latestJSFolder) || runtimeFileData.includes(latestCSSFolder)) {
167
167
  await (0, import_promises.writeFile)(
168
168
  destRuntimeFilePath,
169
- runtimeFileData.replace(latestJSFolder, `${version}/js`)
170
- );
171
- await (0, import_promises.writeFile)(
172
- destRuntimeFilePath,
173
- runtimeFileData.replace(latestCSSFolder, `${version}/css`)
169
+ runtimeFileData.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
174
170
  );
175
171
  const sourceMapFile = `${runtimeFilePath}.map`;
176
172
  const sourcemap = await (0, import_promises.readFile)(sourceMapFile, "utf8");
177
173
  await (0, import_promises.writeFile)(
178
174
  `${destRuntimeFilePath}.map`,
179
- sourcemap.replace(latestJSFolder, `${version}/js`)
180
- );
181
- await (0, import_promises.writeFile)(
182
- `${destRuntimeFilePath}.map`,
183
- sourcemap.replace(latestCSSFolder, `${version}/css`)
175
+ sourcemap.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
184
176
  );
185
177
  const gzip = (0, import_node_zlib.createGzip)();
186
178
  let source = (0, import_node_fs.createReadStream)(destRuntimeFilePath);
@@ -135,21 +135,13 @@ const updateRuntimeFile = async (src, dest, version) => {
135
135
  if (runtimeFileData.includes(latestJSFolder) || runtimeFileData.includes(latestCSSFolder)) {
136
136
  await writeFile(
137
137
  destRuntimeFilePath,
138
- runtimeFileData.replace(latestJSFolder, `${version}/js`)
139
- );
140
- await writeFile(
141
- destRuntimeFilePath,
142
- runtimeFileData.replace(latestCSSFolder, `${version}/css`)
138
+ runtimeFileData.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
143
139
  );
144
140
  const sourceMapFile = `${runtimeFilePath}.map`;
145
141
  const sourcemap = await readFile(sourceMapFile, "utf8");
146
142
  await writeFile(
147
143
  `${destRuntimeFilePath}.map`,
148
- sourcemap.replace(latestJSFolder, `${version}/js`)
149
- );
150
- await writeFile(
151
- `${destRuntimeFilePath}.map`,
152
- sourcemap.replace(latestCSSFolder, `${version}/css`)
144
+ sourcemap.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
153
145
  );
154
146
  const gzip = createGzip();
155
147
  let source = createReadStream(destRuntimeFilePath);