Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Aug 13, 2024
1 parent fa4e1e5 commit 4e63680
Show file tree
Hide file tree
Showing 32 changed files with 81 additions and 76 deletions.
2 changes: 1 addition & 1 deletion e2e/cases/alias/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
source: {
entry: {
main: './src/index.ts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
source: {
entry: {
main: '../../__fixtures__/src/index.ts',
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/auto-extension/type-commonjs/false/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
autoExtension: false,
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
autoExtension: false,
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
source: {
entry: {
main: '../../__fixtures__/src/index.ts',
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/auto-extension/type-module/false/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
autoExtension: false,
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
autoExtension: false,
}),
],
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/auto-external/default/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
dts: {
bundle: true,
},
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
dts: {
bundle: true,
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/auto-external/external-sub-path/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
source: {
entry: {
main: './src/index.ts',
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/auto-external/false/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
autoExternal: false,
dts: {
bundle: true,
},
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
autoExternal: false,
dts: {
bundle: true,
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/auto-external/with-externals/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
output: {
externals: {
react: 'react1',
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/bundle-false/basic/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
bundle: false,
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
bundle: false,
}),
],
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/bundle-false/single-file/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
bundle: false,
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
bundle: false,
}),
],
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/cli/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname)],
lib: [generateBundleEsmConfig()],
});
2 changes: 1 addition & 1 deletion e2e/cases/define/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
source: {
entry: {
main: './src/index.ts',
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle-false/abort-on-error/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
bundle: false,
dts: {
bundle: false,
abortOnError: false,
},
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
bundle: false,
}),
],
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle-false/auto-extension/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
bundle: false,
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
bundle: false,
dts: {
bundle: false,
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle-false/basic/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
bundle: false,
dts: {
bundle: false,
},
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
bundle: false,
}),
],
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle-false/dist-path/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
bundle: false,
dts: {
bundle: false,
distPath: './dist/custom',
},
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
bundle: false,
}),
],
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle-false/false/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
bundle: false,
dts: false,
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
bundle: false,
}),
],
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle/abort-on-error/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
dts: {
bundle: true,
abortOnError: false,
},
}),
generateBundleCjsConfig(__dirname),
generateBundleCjsConfig(),
],
source: {
entry: {
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle/auto-extension/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname),
generateBundleCjsConfig(__dirname, {
generateBundleEsmConfig(),
generateBundleCjsConfig({
dts: {
bundle: true,
},
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle/basic/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
dts: {
bundle: true,
},
}),
generateBundleCjsConfig(__dirname),
generateBundleCjsConfig(),
],
source: {
entry: {
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle/bundle-name/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
dts: {
bundle: true,
},
}),
generateBundleCjsConfig(__dirname),
generateBundleCjsConfig(),
],
source: {
entry: {
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle/dist-path/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
dts: {
bundle: true,
distPath: './dist/custom',
},
}),
generateBundleCjsConfig(__dirname),
generateBundleCjsConfig(),
],
source: {
entry: {
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/dts/bundle/false/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
dts: false,
}),
generateBundleCjsConfig(__dirname),
generateBundleCjsConfig(),
],
source: {
entry: {
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/externals/browser/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
source: {
entry: {
main: './src/index.ts',
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/externals/node/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, { output: { target: 'node' } }),
generateBundleCjsConfig(__dirname, { output: { target: 'node' } }),
generateBundleEsmConfig({ output: { target: 'node' } }),
generateBundleCjsConfig({ output: { target: 'node' } }),
],
source: {
entry: {
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/syntax/config/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
generateBundleEsmConfig(__dirname, {
generateBundleEsmConfig({
output: {
syntax: 'es2015',
},
}),
generateBundleCjsConfig(__dirname, {
generateBundleCjsConfig({
output: {
syntax: ['node 20'],
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/syntax/default/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],
lib: [generateBundleEsmConfig(), generateBundleCjsConfig()],
source: {
entry: {
main: '../__fixtures__/src/index.ts',
Expand Down
Loading

0 comments on commit 4e63680

Please sign in to comment.