Skip to content

Commit c75899a

Browse files
authored
chore: remove sander (#225)
1 parent 9761963 commit c75899a

File tree

3 files changed

+10
-103
lines changed

3 files changed

+10
-103
lines changed

package-lock.json

Lines changed: 0 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"eslint": "^7.14.0",
3737
"eslint-config-prettier": "^8.8.0",
3838
"rollup": "^2.33.3",
39-
"sander": "^0.6.0",
4039
"source-map": "^0.7.3",
4140
"svelte": "^4.0.0",
4241
"uvu": "^0.4.1"

test/index.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const { test } = require('uvu');
44
const assert = require('uvu/assert');
55
const { SourceMapConsumer } = require('source-map');
66
const { rollup } = require('rollup');
7-
const sander = require('sander');
87
const { VERSION } = require('svelte/compiler');
98
const plugin = require('..');
109

@@ -75,8 +74,8 @@ test('creates a {code, map, dependencies} object, excluding the AST etc', async
7574
});
7675

7776
test('respects `sourcemapExcludeSources` Rollup option', async () => {
78-
sander.rimrafSync('test/sourcemap-test/dist');
79-
sander.mkdirSync('test/sourcemap-test/dist');
77+
fs.rmSync('test/sourcemap-test/dist', { recursive: true, force: true });
78+
fs.mkdirSync('test/sourcemap-test/dist', { recursive: true });
8079

8180
const bundle = await rollup({
8281
input: 'test/sourcemap-test/src/main.js',
@@ -263,8 +262,8 @@ test('intercepts warnings', async () => {
263262
});
264263

265264
test('handles filenames that happen to contain ".svelte"', async () => {
266-
sander.rimrafSync('test/filename-test/dist');
267-
sander.mkdirSync('test/filename-test/dist');
265+
fs.rmSync('test/filename-test/dist', { recursive: true, force: true });
266+
fs.mkdirSync('test/filename-test/dist', { recursive: true });
268267

269268
try {
270269
const bundle = await rollup({
@@ -322,8 +321,8 @@ test('handles filenames that happen to contain ".svelte"', async () => {
322321
test('handles ".svelte.ts/js" files', async () => {
323322
if (!isSvelte5Plus) return;
324323

325-
sander.rimrafSync('test/filename-test2/dist');
326-
sander.mkdirSync('test/filename-test2/dist');
324+
fs.rmSync('test/filename-test2/dist', { recursive: true, force: true });
325+
fs.mkdirSync('test/filename-test2/dist', { recursive: true });
327326

328327
try {
329328
const bundle = await rollup({
@@ -351,8 +350,8 @@ test('handles ".svelte.ts/js" files', async () => {
351350
});
352351

353352
test('ignores ".html" extension by default', async () => {
354-
sander.rimrafSync('test/node_modules/widget/dist');
355-
sander.mkdirSync('test/node_modules/widget/dist');
353+
fs.rmSync('test/node_modules/widget/dist', { recursive: true, force: true });
354+
fs.mkdirSync('test/node_modules/widget/dist', { recursive: true });
356355

357356
try {
358357
const bundle = await rollup({
@@ -378,8 +377,8 @@ test('ignores ".html" extension by default', async () => {
378377
});
379378

380379
test('allows ".html" extension if configured', async () => {
381-
sander.rimrafSync('test/node_modules/widget/dist');
382-
sander.mkdirSync('test/node_modules/widget/dist');
380+
fs.rmSync('test/node_modules/widget/dist', { recursive: true, force: true });
381+
fs.mkdirSync('test/node_modules/widget/dist', { recursive: true });
383382

384383
try {
385384
const bundle = await rollup({

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy