@putout/babel 1.5.2 → 1.5.4

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.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [NPMIMGURL]: https://img.shields.io/npm/v/@putout/babel.svg?style=flat&longCache=true
4
4
  [NPMURL]: https://npmjs.org/package/@putout/babel "npm"
5
5
 
6
- **CommonJS** pre-builts of Babel 8: if you want to migrate to [v8](https://github.com/babel/babel/releases/tag/v8.0.0-alpha.1), but cannot support **ESM** right now.
6
+ **CommonJS** pre-builts of Babel 8: if you want to migrate to [v8](https://github.com/babel/babel/releases/tag/v8.0.0-alpha.4), but cannot support **ESM** right now.
7
7
 
8
8
  Usage
9
9
 
@@ -17,12 +17,6 @@ const {
17
17
  } = require('@putout/babel');
18
18
  ```
19
19
 
20
- ## Why not separate files?
21
-
22
- Becaouse each of them will be about `1.8mb`:
23
-
24
- <img width="479" alt="image" src="https://github.com/putoutjs/babel/assets/1573141/aa75f1bb-c312-4640-a605-fed0a0759427">
25
-
26
20
  ## License
27
21
 
28
22
  MIT
package/bundle/index.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- export { default as template } from '@babel/template';
2
- export { default as generate } from '@babel/generator';
3
- export { default as traverse } from '@babel/traverse';
4
- export * from '@babel/code-frame';
5
- export { type } from '@babel/code-frame';
6
-
7
1
  // NOTE: This file is autogenerated. Do not modify.
8
2
  // See packages/babel-types/scripts/generators/typescript-legacy.js for script used.
9
3
 
@@ -5454,4 +5448,15 @@ type ParseResult<Result> = Result & {
5454
5448
  errors: ParseError[];
5455
5449
  };
5456
5450
 
5457
- export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes, indexLegacy_d as types };
5451
+ interface Location {
5452
+ start: {
5453
+ line: number;
5454
+ column: number;
5455
+ };
5456
+ }
5457
+
5458
+ interface CodeFrameOptions {}
5459
+
5460
+ declare function codeFrameColumns(rawLines: string, location: Location, options: CodeFrameOptions): string;
5461
+
5462
+ export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, codeFrameColumns, parse, parseExpression, tokTypes, traverse, indexLegacy_d as types };
package/bundle/index.js CHANGED
@@ -3468,9 +3468,9 @@ var require_globals2 = __commonJS({
3468
3468
  }
3469
3469
  });
3470
3470
 
3471
- // babel/index.mjs
3472
- var babel_exports = {};
3473
- __export(babel_exports, {
3471
+ // lib/index.mjs
3472
+ var lib_exports2 = {};
3473
+ __export(lib_exports2, {
3474
3474
  codeFrameColumns: () => codeFrameColumns,
3475
3475
  generate: () => generate,
3476
3476
  parse: () => parse,
@@ -3480,7 +3480,7 @@ __export(babel_exports, {
3480
3480
  traverse: () => traverse3,
3481
3481
  types: () => lib_exports
3482
3482
  });
3483
- module.exports = __toCommonJS(babel_exports);
3483
+ module.exports = __toCommonJS(lib_exports2);
3484
3484
 
3485
3485
  // node_modules/@babel/types/lib/index.js
3486
3486
  var lib_exports = {};
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@putout/babel",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Babel 8 in CommonJS",
7
7
  "homepage": "https://github.com/putoutjs/babel",
8
- "main": "./bundle/babel.cjs",
8
+ "main": "./bundle/index.js",
9
9
  "exports": {
10
10
  ".": "./bundle/index.js"
11
11
  },
@@ -21,6 +21,7 @@
21
21
  ],
22
22
  "scripts": {
23
23
  "test": "madrun test",
24
+ "test:dts": "madrun test:dts",
24
25
  "watch:test": "madrun watch:test",
25
26
  "lint": "madrun lint",
26
27
  "fresh:lint": "madrun fresh:lint",
@@ -29,8 +30,12 @@
29
30
  "coverage": "madrun coverage",
30
31
  "report": "madrun report",
31
32
  "wisdom": "madrun wisdom",
33
+ "build-old": "madrun build-old",
34
+ "clean": "madrun clean",
32
35
  "build": "madrun build",
33
- "copy": "madrun copy"
36
+ "build:js": "madrun build:js",
37
+ "build:types": "madrun build:types",
38
+ "build:fix": "madrun build:fix"
34
39
  },
35
40
  "dependencies": {},
36
41
  "keywords": [
@@ -64,7 +69,9 @@
64
69
  "rollup": "^3.15.0",
65
70
  "rollup-plugin-node-externals": "^6.1.1",
66
71
  "rollup-plugin-polyfill-node": "^0.12.0",
67
- "tsup": "^7.2.0"
72
+ "supertape": "^8.6.0",
73
+ "tsup": "^7.2.0",
74
+ "typescript": "^5.2.2"
68
75
  },
69
76
  "license": "MIT",
70
77
  "engines": {