@skmtc/core 0.0.633 → 0.0.634

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.
@@ -134,19 +134,16 @@ export class RenderContext {
134
134
  }
135
135
  _RenderContext_stackTrail = new WeakMap();
136
136
  const renderFile = ({ content, destinationPath, basePath, prettier }) => {
137
- const path = toResolvedArtifactPath({ basePath, destinationPath });
138
- console.log('CONTENT', content);
139
137
  const formatted = prettier
140
138
  ? synchronizedPrettier.format(content, {
141
139
  parser: 'estree',
142
- filepath: path,
143
140
  plugins: [estree, typescript],
144
141
  ...prettier
145
142
  })
146
143
  : content;
147
144
  return {
148
145
  content: formatted,
149
- path: path,
146
+ path: toResolvedArtifactPath({ basePath, destinationPath }),
150
147
  destinationPath,
151
148
  lines: formatted.split('\n').length,
152
149
  characters: formatted.length
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.633",
3
+ "version": "0.0.634",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -164,19 +164,16 @@ class RenderContext {
164
164
  exports.RenderContext = RenderContext;
165
165
  _RenderContext_stackTrail = new WeakMap();
166
166
  const renderFile = ({ content, destinationPath, basePath, prettier }) => {
167
- const path = (0, toResolvedArtifactPath_js_1.toResolvedArtifactPath)({ basePath, destinationPath });
168
- console.log('CONTENT', content);
169
167
  const formatted = prettier
170
168
  ? sync_1.default.format(content, {
171
169
  parser: 'estree',
172
- filepath: path,
173
170
  plugins: [estree_1.default, typescript_1.default],
174
171
  ...prettier
175
172
  })
176
173
  : content;
177
174
  return {
178
175
  content: formatted,
179
- path: path,
176
+ path: (0, toResolvedArtifactPath_js_1.toResolvedArtifactPath)({ basePath, destinationPath }),
180
177
  destinationPath,
181
178
  lines: formatted.split('\n').length,
182
179
  characters: formatted.length