@dword-design/base 11.0.7 → 11.0.9

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.
@@ -2,7 +2,6 @@
2
2
 
3
3
  exports[`index valid 1`] = `
4
4
  Object {
5
- ".babelrc.json": true,
6
5
  ".commitlintrc.json": true,
7
6
  ".cz.json": true,
8
7
  ".devcontainer": true,
@@ -24,6 +23,7 @@ Object {
24
23
  "CHANGELOG.md": true,
25
24
  "LICENSE.md": true,
26
25
  "README.md": true,
26
+ "babel.config.json": true,
27
27
  "package.json": true,
28
28
  "src": true,
29
29
  "yarn.lock": true,
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`index no metadata sync 1`] = `
4
4
  Array [
5
- ".babelrc.json",
5
+ "babel.config.json",
6
6
  ".commitlintrc.json",
7
7
  ".cz.json",
8
8
  ".editorconfig",
@@ -28,7 +28,6 @@ Array [
28
28
 
29
29
  exports[`index works 1`] = `
30
30
  Array [
31
- ".babelrc.json",
32
31
  ".commitlintrc.json",
33
32
  ".cz.json",
34
33
  ".devcontainer/devcontainer.json",
@@ -50,6 +49,7 @@ Array [
50
49
  ".vscode/settings.json",
51
50
  "LICENSE.md",
52
51
  "README.md",
52
+ "babel.config.json",
53
53
  "package.json",
54
54
  ]
55
55
  `;
@@ -1 +1 @@
1
- export default ['.babelrc.json', '.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', '.eslintrc.json', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'yarn.lock'];
1
+ export default ['babel.config.json', '.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', '.eslintrc.json', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'yarn.lock'];
@@ -2,7 +2,6 @@
2
2
 
3
3
  exports[`index valid 1`] = `
4
4
  Array [
5
- ".babelrc.json",
6
5
  ".commitlintrc.json",
7
6
  ".cz.json",
8
7
  ".devcontainer",
@@ -20,6 +19,7 @@ Array [
20
19
  ".vscode",
21
20
  "CHANGELOG.md",
22
21
  "LICENSE.md",
22
+ "babel.config.json",
23
23
  "coverage",
24
24
  "foo",
25
25
  "node_modules",
@@ -5,7 +5,6 @@ Object {
5
5
  "editor.tabSize": 2,
6
6
  "files.autoSave": "off",
7
7
  "files.exclude": Object {
8
- ".babelrc.json": true,
9
8
  ".commitlintrc.json": true,
10
9
  ".cz.json": true,
11
10
  ".devcontainer": true,
@@ -23,6 +22,7 @@ Object {
23
22
  ".vscode": true,
24
23
  "CHANGELOG.md": true,
25
24
  "LICENSE.md": true,
25
+ "babel.config.json": true,
26
26
  "bar": true,
27
27
  "coverage": true,
28
28
  "foo": true,
@@ -13,12 +13,9 @@ import githubFunding from "./github-funding.js";
13
13
  import githubLabelsConfig from "./github-labels.js";
14
14
  import githubSyncLabelsConfig from "./github-sync-labels.js";
15
15
  export default function () {
16
- var _babelConfig, _commitlintConfig, _commitizenConfig, _this$getGithubCodesp, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _this$getGitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _ref2, _packageConfig;
16
+ var _commitlintConfig, _commitizenConfig, _this$getGithubCodesp, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _this$getGitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _babelConfig, _ref2, _packageConfig;
17
17
  const packageConfig = this.getPackageConfig();
18
18
  return {
19
- '.babelrc.json': `${(_babelConfig = babelConfig, jsonToString({
20
- indent: 2
21
- })(_babelConfig))}\n`,
22
19
  '.commitlintrc.json': `${(_commitlintConfig = commitlintConfig, jsonToString({
23
20
  indent: 2
24
21
  })(_commitlintConfig))}\n`,
@@ -66,6 +63,9 @@ export default function () {
66
63
  })(_this$getVscodeConfig))}\n`,
67
64
  'LICENSE.md': this.getLicenseString(),
68
65
  'README.md': this.getReadmeString(),
66
+ 'babel.config.json': `${(_babelConfig = babelConfig, jsonToString({
67
+ indent: 2
68
+ })(_babelConfig))}\n`,
69
69
  'package.json': `${(_ref2 = (_packageConfig = packageConfig, sortPackageJson(_packageConfig)), jsonToString({
70
70
  indent: 2
71
71
  })(_ref2))}\n`
package/dist/index.js CHANGED
@@ -8,7 +8,6 @@ import packageName from 'depcheck-package-name';
8
8
  import depcheckParserBabel from 'depcheck-parser-babel';
9
9
  import fs from 'fs-extra';
10
10
  import jiti from 'jiti';
11
- import { createRequire } from 'module';
12
11
  import P from 'path';
13
12
  import { transform as pluginNameToPackageName } from 'plugin-name-to-package-name';
14
13
  import checkUnknownFiles from "./commands/check-unknown-files/index.js";
@@ -36,8 +35,6 @@ import getRenovateConfig from "./get-generated-files/get-renovate/index.js";
36
35
  import getVscodeConfig from "./get-generated-files/get-vscode/index.js";
37
36
  import getGeneratedFiles from "./get-generated-files/index.js";
38
37
  import getGitInfo from "./get-git-info/index.js";
39
- const _require = createRequire(import.meta.url);
40
- const babelConfig = _require('@dword-design/babel-config');
41
38
  const mergeConfigs = (...configs) => {
42
39
  const result = deepmerge.all(configs, {
43
40
  customMerge: key => key === 'supportedNodeVersions' ? (a, b) => b : undefined
@@ -56,10 +53,7 @@ class Base {
56
53
  const jitiInstance = jiti(process.cwd(), {
57
54
  esmResolve: true,
58
55
  interopDefault: true,
59
- transform: jitiBabelTransform,
60
- transformOptions: {
61
- babel: babelConfig
62
- }
56
+ transform: jitiBabelTransform
63
57
  });
64
58
  if (config === undefined) {
65
59
  config = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "11.0.7",
3
+ "version": "11.0.9",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",