Skip to content

Commit b004221

Browse files
Add 'clean' back to TypeScript build
This solves an unresolved import problem on my local machine (likely due to a corrupted cache).
1 parent 6d64028 commit b004221

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

packages/firestore/rollup.config.exp.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
import tmp from 'tmp';
1918
import json from '@rollup/plugin-json';
2019
import alias from '@rollup/plugin-alias';
2120
import typescriptPlugin from 'rollup-plugin-typescript2';
@@ -38,7 +37,7 @@ const nodePlugins = [
3837
target: 'es2017'
3938
}
4039
},
41-
cacheDir: tmp.dirSync(),
40+
clean: true,
4241
abortOnError: false,
4342
transformers: [util.removeAssertTransformer, importPathTransformer]
4443
}),
@@ -65,7 +64,7 @@ const browserPlugins = [
6564
target: 'es2017'
6665
}
6766
},
68-
cacheDir: tmp.dirSync(),
67+
clean: true,
6968
abortOnError: false,
7069
transformers: [
7170
util.removeAssertAndPrefixInternalTransformer,

packages/firestore/rollup.config.lite.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
import tmp from 'tmp';
1918
import path from 'path';
2019
import json from '@rollup/plugin-json';
2120
import alias from '@rollup/plugin-alias';
@@ -39,7 +38,7 @@ const nodePlugins = [
3938
target: 'es2017'
4039
}
4140
},
42-
cacheDir: tmp.dirSync(),
41+
clean: true,
4342
abortOnError: false,
4443
transformers: [util.removeAssertTransformer, importPathTransformer]
4544
}),
@@ -65,7 +64,7 @@ const browserPlugins = [
6564
target: 'es2017'
6665
}
6766
},
68-
cacheDir: tmp.dirSync(),
67+
clean: true,
6968
abortOnError: false,
7069
transformers: [
7170
util.removeAssertAndPrefixInternalTransformer,

packages/firestore/rollup.shared.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
const tmp = require('tmp');
1918
const json = require('@rollup/plugin-json');
2019
const alias = require('@rollup/plugin-alias');
2120
const typescriptPlugin = require('rollup-plugin-typescript2');
@@ -214,7 +213,7 @@ exports.es2017Plugins = function (platform, mangled = false) {
214213
target: 'es2017'
215214
}
216215
},
217-
cacheDir: tmp.dirSync(),
216+
clean: true,
218217
transformers: [removeAssertAndPrefixInternalTransformer]
219218
}),
220219
json({ preferConst: true }),
@@ -230,7 +229,7 @@ exports.es2017Plugins = function (platform, mangled = false) {
230229
target: 'es2017'
231230
}
232231
},
233-
cacheDir: tmp.dirSync(),
232+
clean: true,
234233
transformers: [removeAssertTransformer]
235234
}),
236235
json({ preferConst: true })
@@ -248,7 +247,8 @@ exports.es2017ToEs5Plugins = function (mangled = false) {
248247
allowJs: true
249248
}
250249
},
251-
include: ['dist/*.js', 'dist/exp/*.js']
250+
include: ['dist/*.js', 'dist/exp/*.js'],
251+
clean: true
252252
}),
253253
terser({
254254
output: {
@@ -268,7 +268,8 @@ exports.es2017ToEs5Plugins = function (mangled = false) {
268268
allowJs: true
269269
}
270270
},
271-
include: ['dist/*.js', 'dist/exp/*.js']
271+
include: ['dist/*.js', 'dist/exp/*.js'],
272+
clean: true
272273
}),
273274
sourcemaps()
274275
];

0 commit comments

Comments
 (0)