@elliemae/pui-cli 8.40.1 → 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.
@@ -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,16 +163,16 @@ 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
- runtimeFileData.replace(latestJSFolder, `${version}/js`)
169
+ runtimeFileData.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
169
170
  );
170
171
  const sourceMapFile = `${runtimeFilePath}.map`;
171
172
  const sourcemap = await (0, import_promises.readFile)(sourceMapFile, "utf8");
172
173
  await (0, import_promises.writeFile)(
173
174
  `${destRuntimeFilePath}.map`,
174
- sourcemap.replace(latestJSFolder, `${version}/js`)
175
+ sourcemap.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
175
176
  );
176
177
  const gzip = (0, import_node_zlib.createGzip)();
177
178
  let source = (0, import_node_fs.createReadStream)(destRuntimeFilePath);
@@ -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,16 +132,16 @@ 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
- runtimeFileData.replace(latestJSFolder, `${version}/js`)
138
+ runtimeFileData.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
138
139
  );
139
140
  const sourceMapFile = `${runtimeFilePath}.map`;
140
141
  const sourcemap = await readFile(sourceMapFile, "utf8");
141
142
  await writeFile(
142
143
  `${destRuntimeFilePath}.map`,
143
- sourcemap.replace(latestJSFolder, `${version}/js`)
144
+ sourcemap.replace(latestJSFolder, `${version}/js`).replace(latestCSSFolder, `${version}/css`)
144
145
  );
145
146
  const gzip = createGzip();
146
147
  let source = createReadStream(destRuntimeFilePath);