From d1cabf6bc88dda5f13369f5aedc796066c2e94c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Wed, 29 Dec 2021 16:29:10 +0100 Subject: [PATCH] [babel 8] Add `"exports"` to every package (#14013) --- .yarn/plugins/@yarnpkg/plugin-conditions.cjs | 8 ++++---- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- constraints.pro | 12 ++++++++++++ packages/babel-cli/package.json | 12 ++++++++++++ packages/babel-code-frame/package.json | 12 ++++++++++++ packages/babel-core/package.json | 12 ++++++++++++ packages/babel-generator/package.json | 12 ++++++++++++ .../babel-helper-annotate-as-pure/package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 3 ++- .../package.json | 12 ++++++++++++ .../package.json | 12 ++++++++++++ packages/babel-helper-define-map/package.json | 14 +++++++++++++- .../package.json | 3 ++- .../package.json | 14 +++++++++++++- packages/babel-helper-fixtures/package.json | 12 ++++++++++++ .../babel-helper-function-name/package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../babel-helper-hoist-variables/package.json | 14 +++++++++++++- .../package.json | 12 ++++++++++++ .../babel-helper-module-imports/package.json | 12 ++++++++++++ .../package.json | 12 ++++++++++++ .../package.json | 14 +++++++++++++- .../package.json | 18 +++++++++++++++++- .../babel-helper-plugin-utils/package.json | 12 ++++++++++++ .../package.json | 14 +++++++++++++- .../babel-helper-replace-supers/package.json | 14 +++++++++++++- .../babel-helper-simple-access/package.json | 12 ++++++++++++ .../package.json | 14 +++++++++++++- .../package.json | 12 ++++++++++++ .../package.json | 5 ++++- .../babel-helper-validator-option/package.json | 5 ++++- .../babel-helper-wrap-function/package.json | 14 +++++++++++++- packages/babel-helpers/package.json | 12 ++++++++++++ packages/babel-highlight/package.json | 12 ++++++++++++ packages/babel-node/package.json | 12 ++++++++++++ packages/babel-parser/package.json | 14 +++++++++++++- .../package.json | 5 ++--- .../package.json | 5 ++--- .../babel-plugin-external-helpers/package.json | 14 +++++++++++++- .../package.json | 3 ++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 3 ++- .../package.json | 12 ++++++++++++ .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 5 ++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 3 ++- .../babel-plugin-syntax-decimal/package.json | 3 ++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- packages/babel-plugin-syntax-flow/package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- packages/babel-plugin-syntax-jsx/package.json | 14 +++++++++++++- .../package.json | 3 ++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../babel-plugin-transform-for-of/package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 12 ++++++++++++ .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 15 ++++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 12 ++++++++++++ .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../babel-plugin-transform-spread/package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- .../package.json | 14 +++++++++++++- packages/babel-preset-env/package.json | 12 ++++++++++++ packages/babel-preset-flow/package.json | 12 ++++++++++++ packages/babel-preset-react/package.json | 12 ++++++++++++ packages/babel-preset-typescript/package.json | 14 +++++++++++++- packages/babel-register/package.json | 12 ++++++++++++ packages/babel-standalone/package.json | 14 ++++++++++++++ packages/babel-template/package.json | 12 ++++++++++++ packages/babel-traverse/package.json | 12 ++++++++++++ .../scripts/generators/validators.js | 3 +-- packages/babel-types/package.json | 12 ++++++++++++ 145 files changed, 1717 insertions(+), 125 deletions(-) diff --git a/.yarn/plugins/@yarnpkg/plugin-conditions.cjs b/.yarn/plugins/@yarnpkg/plugin-conditions.cjs index 6ce962a264..c2da15055b 100644 --- a/.yarn/plugins/@yarnpkg/plugin-conditions.cjs +++ b/.yarn/plugins/@yarnpkg/plugin-conditions.cjs @@ -3,15 +3,15 @@ module.exports = { name: "@yarnpkg/plugin-conditions", factory: function (require) { -var plugin=(()=>{var te=Object.create,U=Object.defineProperty,ne=Object.defineProperties,oe=Object.getOwnPropertyDescriptor,ie=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertyNames,I=Object.getOwnPropertySymbols,se=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var N=(t,e,n)=>e in t?U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,E=(t,e)=>{for(var n in e||(e={}))W.call(e,n)&&N(t,n,e[n]);if(I)for(var n of I(e))ae.call(e,n)&&N(t,n,e[n]);return t},V=(t,e)=>ne(t,ie(e)),ce=t=>U(t,"__esModule",{value:!0});var u=t=>{if(typeof require!="undefined")return require(t);throw new Error('Dynamic require of "'+t+'" is not supported')};var le=(t,e)=>{for(var n in e)U(t,n,{get:e[n],enumerable:!0})},pe=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of re(e))!W.call(t,o)&&o!=="default"&&U(t,o,{get:()=>e[o],enumerable:!(n=oe(e,o))||n.enumerable});return t},f=t=>pe(ce(U(t!=null?te(se(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var me={};le(me,{default:()=>fe});var Q=f(u("@yarnpkg/core"));var k=f(u("@yarnpkg/core"));function M(t){let e="condition:";if(!t.startsWith(e,0))throw new Error(`Expected 'condition:' at index 0 (${t})`);let n=e.length;a();let o=d(/[\w-]+/y);if(!o)throw new Error(`Expected an identifier at index ${n} (${t})`);a(),s("?"),a();let i=null;t[n]==="("?(i=m().trim()||null,a()):t[n]!==":"&&(i=P(":").trimRight()||null),s(":"),a();let r=null;n0)&&(p+=D),n++}return p}}var $=["dependencies","devDependencies","peerDependencies"],z=6;function h(t){return t.startsWith("condition:")}function A(t){try{return M(t)}catch(e){try{let{test:n,consequent:o,alternate:i}=k.structUtils.parseRange(t).params;return{test:n,consequent:o||null,alternate:i||null}}catch{throw e}}}function x(t){return A(t.range)}function b(t){return A(t.reference)}function de({test:t,consequent:e,alternate:n,hash:o}){return`condition:${t}?${e||""}:${n||""}#${o||""}`}function Y(t,{test:e,consequent:n,alternate:o,hash:i}){return k.structUtils.makeLocator(t,de({test:e,consequent:n,alternate:o,hash:i}))}function v(t,e,n,o,i){let r=k.structUtils.makeIdent(e.scope,`${e.name}-${n}-${i}`),c=t.configuration.get("defaultProtocol")+`${k.structUtils.stringifyIdent(e)}@${o}`;return k.structUtils.makeDescriptor(r,c)}function j(t,e,n,o){return k.hashUtils.makeHash(String(z),t,e||"-",n||"-",o?"1":"0").slice(0,6)}var L=f(u("@yarnpkg/core")),B={conditions:{description:"",type:L.SettingsType.MAP,valueDefinition:{description:"",type:L.SettingsType.SHAPE,properties:{source:{description:"",type:L.SettingsType.STRING,default:"env"},default:{description:"",type:L.SettingsType.BOOLEAN,default:!1}}}}};function H(t,e){if(!t.configuration.get("conditions").has(e))throw new Error(`Unknown condition: ${e}. You must add it to your .yarnrc.yml file.`)}function R(t,e){return H(t,e),t.configuration.get("conditions").get(e).get("default")}function q(t,e){var r;H(t,e);let n=t.configuration.get("conditions").get(e),o=n.get("source"),i=n.get("default");if(o!=="env")throw new Error("The only supported configuration source is 'env'");return(r=ue(process.env[e]))!=null?r:i}function ue(t){return t&&t!=="false"&&t!=="0"}var O=class{supportsDescriptor(e){return h(e.range)}supportsLocator(e){return h(e.reference)}shouldPersistResolution(){return!1}bindDescriptor(e){return e}getResolutionDependencies(e,n){let{test:o,consequent:i,alternate:r}=x(e);return[i&&v(n.project,e,o,i,!0),r&&v(n.project,e,o,r,!1)].filter(Boolean)}async getCandidates(e,n,o){let{test:i,consequent:r,alternate:c}=x(e),s=j(i,r,c,R(o.project,i));return[Y(e,{test:i,consequent:r,alternate:c,hash:s})]}async getSatisfying(){return null}async resolve(e,n){let{test:o,consequent:i,alternate:r}=b(e),c=j(o,i,r,R(n.project,o)),s=i&&v(n.project,e,o,i,!0),a=r&&v(n.project,e,o,r,!1);return V(E({},e),{version:`0.0.0-condition-${c}`,languageName:n.project.configuration.get("defaultLanguageName"),linkType:Q.LinkType.HARD,dependencies:new Map([i&&[s.identHash,s],r&&[a.identHash,a]].filter(Boolean)),peerDependencies:new Map,dependenciesMeta:new Map,peerDependenciesMeta:new Map,bin:null})}};var S=f(u("@yarnpkg/core"));var _=f(u("@yarnpkg/core")),y=f(u("@yarnpkg/fslib")),J=f(u("@yarnpkg/libzip")),K=15805116e5;async function G(t,e,n,o){let[i,r]=await Promise.all([y.xfs.mktempPromise(),(0,J.getLibzipPromise)()]),c=y.ppath.join(i,"condition.zip"),s=_.structUtils.getIdentVendorPath(t),a=new y.ZipFS(c,{libzip:r,create:!0,level:e.configuration.get("compressionLevel")});return await a.mkdirpPromise(s),await Promise.all([a.writeJsonPromise(y.ppath.join(s,"package.json"),n),a.writeFilePromise(y.ppath.join(s,"index.js"),o)]),await Promise.all(a.getAllFiles().map(d=>a.utimesPromise(d,K,K))),a}var F=class{supports(e){return h(e.reference)}getLocalPath(){return null}async fetch(e,n){let o=n.checksums.get(e.locatorHash)||null,[i,r,c]=await n.cache.fetchPackageFromCache(e,o,{onHit:()=>n.report.reportCacheHit(e),onMiss:()=>n.report.reportCacheMiss(e,`${S.structUtils.prettyLocator(n.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.generateConditionPackage(e,n),skipIntegrityCheck:n.skipIntegrityCheck});return{packageFs:i,releaseFs:r,prefixPath:S.structUtils.getIdentVendorPath(e),localPath:this.getLocalPath(),checksum:c}}async generateConditionPackage(e,n){let{test:o,consequent:i,alternate:r}=b(e),c=R(n.project,o),s=j(o,i,r,c),a=(m,l)=>{if(m==null)return{dependency:null,require:"null"};let p=v(n.project,e,o,m,l),D=S.structUtils.stringifyIdent(p);return{dependency:{[D]:p.range},require:`require(${JSON.stringify(D)})`}},d=a(i,!0),P=a(r,!1);return G(e,n.project,{version:`0.0.0-condition-${s}`,dependencies:E(E({},d.dependency),P.dependency)},`// env vars from the cli are always strings, so !!ENV_VAR returns true for "false" +var plugin=(()=>{var ne=Object.create,w=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptor,re=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertyNames,I=Object.getOwnPropertySymbols,ae=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var N=(t,e,n)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e)=>{for(var n in e||(e={}))W.call(e,n)&&N(t,n,e[n]);if(I)for(var n of I(e))ce.call(e,n)&&N(t,n,e[n]);return t},V=(t,e)=>oe(t,re(e)),le=t=>w(t,"__esModule",{value:!0});var g=t=>{if(typeof require!="undefined")return require(t);throw new Error('Dynamic require of "'+t+'" is not supported')};var pe=(t,e)=>{for(var n in e)w(t,n,{get:e[n],enumerable:!0})},de=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of se(e))!W.call(t,o)&&o!=="default"&&w(t,o,{get:()=>e[o],enumerable:!(n=ie(e,o))||n.enumerable});return t},m=t=>de(le(w(t!=null?ne(ae(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var ke={};pe(ke,{default:()=>he});var Q=m(g("@yarnpkg/core"));var y=m(g("@yarnpkg/core"));function z(t){let e="condition:";if(!t.startsWith(e,0))throw new Error(`Expected 'condition:' at index 0 (${t})`);let n=e.length;c();let o=d(/[\w-]+/y);if(!o)throw new Error(`Expected an identifier at index ${n} (${t})`);c(),a("?"),c();let i=null;t[n]==="("?(i=f().trim()||null,c()):t[n]!==":"&&(i=u(":").trimRight()||null),a(":"),c();let r=null;n0)&&(p+=D),n++}return p}}var R=["dependencies","devDependencies","peerDependencies"],A=6;function k(t){return t.startsWith("condition:")}function Y(t){try{return z(t)}catch(e){try{let{test:n,consequent:o,alternate:i}=y.structUtils.parseRange(t).params;return{test:n,consequent:o||null,alternate:i||null}}catch{throw e}}}function x(t){return Y(t.range)}function $(t){return Y(t.reference)}function ue({test:t,consequent:e,alternate:n,hash:o}){return`condition:${t}?${e||""}:${n||""}#${o||""}`}function B(t,{test:e,consequent:n,alternate:o,hash:i}){return y.structUtils.makeLocator(t,ue({test:e,consequent:n,alternate:o,hash:i}))}function v(t,e,n,o,i){let r=y.structUtils.makeIdent(e.scope,`${e.name}-${n}-${i}`),s=t.configuration.get("defaultProtocol")+`${y.structUtils.stringifyIdent(e)}@${o}`;return y.structUtils.makeDescriptor(r,s)}function E(t,e,n,o){return y.hashUtils.makeHash(String(A),t,e||"-",n||"-",o?"1":"0").slice(0,6)}var b=m(g("@yarnpkg/core")),M={conditions:{description:"",type:b.SettingsType.MAP,valueDefinition:{description:"",type:b.SettingsType.SHAPE,properties:{source:{description:"",type:b.SettingsType.STRING,default:"env"},default:{description:"",type:b.SettingsType.BOOLEAN,default:!1}}}}};function q(t,e){if(!t.configuration.get("conditions").has(e))throw new Error(`Unknown condition: ${e}. You must add it to your .yarnrc.yml file.`)}function L(t,e){return q(t,e),t.configuration.get("conditions").get(e).get("default")}function O(t,e){var r;q(t,e);let n=t.configuration.get("conditions").get(e),o=n.get("source"),i=n.get("default");if(o!=="env")throw new Error("The only supported configuration source is 'env'");return(r=fe(process.env[e]))!=null?r:i}function fe(t){return t&&t!=="false"&&t!=="0"}var F=class{supportsDescriptor(e){return k(e.range)}supportsLocator(e){return k(e.reference)}shouldPersistResolution(){return!1}bindDescriptor(e){return e}getResolutionDependencies(e,n){let{test:o,consequent:i,alternate:r}=x(e);return[i&&v(n.project,e,o,i,!0),r&&v(n.project,e,o,r,!1)].filter(Boolean)}async getCandidates(e,n,o){let{test:i,consequent:r,alternate:s}=x(e),a=E(i,r,s,L(o.project,i));return[B(e,{test:i,consequent:r,alternate:s,hash:a})]}async getSatisfying(){return null}async resolve(e,n){let{test:o,consequent:i,alternate:r}=$(e),s=E(o,i,r,L(n.project,o)),a=i&&v(n.project,e,o,i,!0),c=r&&v(n.project,e,o,r,!1);return V(j({},e),{version:`0.0.0-condition-${s}`,languageName:n.project.configuration.get("defaultLanguageName"),linkType:Q.LinkType.HARD,dependencies:new Map([i&&[a.identHash,a],r&&[c.identHash,c]].filter(Boolean)),peerDependencies:new Map,dependenciesMeta:new Map,peerDependenciesMeta:new Map,bin:null})}};var H=m(g("@yarnpkg/core"));var _=m(g("@yarnpkg/core")),P=m(g("@yarnpkg/fslib")),J=m(g("@yarnpkg/libzip")),K=15805116e5;async function G(t,e,n,o){let[i,r]=await Promise.all([P.xfs.mktempPromise(),(0,J.getLibzipPromise)()]),s=P.ppath.join(i,"condition.zip"),a=_.structUtils.getIdentVendorPath(t),c=new P.ZipFS(s,{libzip:r,create:!0,level:e.configuration.get("compressionLevel")});return await c.mkdirpPromise(a),await Promise.all([c.writeJsonPromise(P.ppath.join(a,"package.json"),n),c.writeFilePromise(P.ppath.join(a,"index.js"),o)]),await Promise.all(c.getAllFiles().map(d=>c.utimesPromise(d,K,K))),c}var S=class{supports(e){return k(e.reference)}getLocalPath(){return null}async fetch(e,n){let o=n.checksums.get(e.locatorHash)||null,[i,r,s]=await n.cache.fetchPackageFromCache(e,o,{onHit:()=>n.report.reportCacheHit(e),onMiss:()=>n.report.reportCacheMiss(e,`${H.structUtils.prettyLocator(n.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.generateConditionPackage(e,n),skipIntegrityCheck:n.skipIntegrityCheck});return{packageFs:i,releaseFs:r,prefixPath:H.structUtils.getIdentVendorPath(e),localPath:this.getLocalPath(),checksum:s}}async generateConditionPackage(e,n){let{test:o,consequent:i,alternate:r}=$(e),s=L(n.project,o),a=E(o,i,r,s),c=(f,l)=>{if(f==null)return{dependency:null,require:"null"};let p=v(n.project,e,o,f,l),D=H.structUtils.stringifyIdent(p);return{dependency:{[D]:p.range},require:`require(${JSON.stringify(D)})`}},d=c(i,!0),u=c(r,!1);return G(e,n.project,{version:`0.0.0-condition-${a}`,dependencies:j(j({},d.dependency),u.dependency)},`// env vars from the cli are always strings, so !!ENV_VAR returns true for "false" function bool(value) { - if (value == null) return ${c}; + if (value == null) return ${s}; return value && value !== "false" && value !== "0"; } module.exports = bool(process.env[${JSON.stringify(o)}]) ? ${d.require} - : ${P.require}; -`)}};var T=f(u("@yarnpkg/core"));async function Z(t,e){var i;let{project:n}=t,o=!1;for(let r of $){let c=t.manifest.getForScope(r).values();for(let s of c){if(!h(s.range))continue;let{test:a,consequent:d,alternate:P}=x(s),m=q(n,a)?d:P,l=T.structUtils.stringifyIdent(s),p=r==="dependencies"&&!e.dependencies[l]&&((i=e.optionalDependencies)==null?void 0:i[l])?"optionalDependencies":r;m?(e[p][l]=m,t.manifest.raw[p][l]=m,t.manifest[r].set(s.identHash,T.structUtils.makeDescriptor(s,m))):(delete e[p][l],delete t.manifest.raw[p][l],t.manifest[r].delete(s.identHash)),o=!0}}o&&await t.project.configuration.triggerHook(r=>r.beforeWorkspacePacking,t,e)}var g=f(u("@yarnpkg/core")),X=f(u("@yarnpkg/cli")),w=f(u("clipanion")),ee=f(u("typanion"));var C=class extends X.BaseCommand{constructor(){super(...arguments);this.condition=w.Option.String({required:!0});this.true=w.Option.Boolean("--true",!1);this.false=w.Option.Boolean("--false",!1)}async execute(){let{project:e,workspace:n,cache:o,configuration:i}=await this.getRoot();H(e,this.condition);let r=this.false?!1:this.true?!0:q(e,this.condition);for(let s of this.nestedWorkspaces(n,e))this.materializeCondition(r,s);let c=await g.StreamReport.start({configuration:i,stdout:this.context.stdout,includeLogs:!0},async s=>{await e.resolveEverything({cache:o,report:s})});if(c.hasErrors())return c.exitCode();await e.persist()}*nestedWorkspaces(e,n){yield e;for(let o of e.workspacesCwds){let i=n.workspacesByCwd.get(o);i&&(yield*this.nestedWorkspaces(i,n))}}materializeCondition(e,n){for(let o of $){let i=n.manifest.getForScope(o).values();for(let r of i){if(!h(r.range))continue;let{test:c,consequent:s,alternate:a}=x(r);if(c!==this.condition)continue;let d=e?s:a;d?n.manifest[o].set(r.identHash,g.structUtils.makeDescriptor(r,d)):n.manifest[o].delete(r.identHash)}}}async getRoot(){let e=await g.Configuration.find(this.context.cwd,this.context.plugins),[{project:n,workspace:o},i]=await Promise.all([g.Project.find(e,this.context.cwd),g.Cache.find(e,{immutable:!0})]);return{configuration:e,project:n,workspace:o,cache:i}}};C.paths=[["condition","materialize"]],C.usage=w.Command.Usage({description:"Evaluate and replace a condition in package.json files",details:"\n This command will replace all the occurrences of `` in the current workspace and in nested workspaces.\n\n The value of the condition (`true` or `false`) is based on the following sources, in descending priority order:\n\n - the `--true` or `--false` option;\n - the `` environment variable;\n - the default value specified in the Yarn configuration;\n - `false` by default.\n "}),C.schema=[ee.hasMutuallyExclusiveKeys(["true","false"])];var fe={configuration:B,commands:[C],fetchers:[F],resolvers:[O],hooks:{beforeWorkspacePacking:Z}};return me;})(); + : ${u.require}; +`)}};var T=m(g("@yarnpkg/core"));var ge=Function.call.bind(Object.prototype.hasOwnProperty);async function Z(t,e){var i;let{project:n}=t,o=!1;for(let r of R){let s=t.manifest.getForScope(r).values();for(let a of s){if(!k(a.range))continue;let{test:c,consequent:d,alternate:u}=x(a),f=O(n,c)?d:u,l=T.structUtils.stringifyIdent(a),p=r==="dependencies"&&!e.dependencies[l]&&((i=e.optionalDependencies)==null?void 0:i[l])?"optionalDependencies":r;f?(e[p][l]=f,t.manifest.raw[p][l]=f,t.manifest[r].set(a.identHash,T.structUtils.makeDescriptor(a,f))):(delete e[p][l],delete t.manifest.raw[p][l],t.manifest[r].delete(a.identHash)),o=!0}}if(ge(e,"conditions")){o=!0;let r=e.conditions;for(let[s,[a,c]]of Object.entries(r)){let d=O(n,s)?a:c;if(d)for(let[u,f]of Object.entries(d))f===null?delete e[u]:e[u]=f}delete e.conditions}o&&await t.project.configuration.triggerHook(r=>r.beforeWorkspacePacking,t,e)}var h=m(g("@yarnpkg/core")),X=m(g("@yarnpkg/cli")),C=m(g("clipanion")),ee=m(g("typanion"));var me=Function.call.bind(Object.prototype.hasOwnProperty),te=(t,e,...n)=>me(t,e)&&(n.length===0||te(t[e],...n)),U=class extends X.BaseCommand{constructor(){super(...arguments);this.condition=C.Option.String({required:!0});this.true=C.Option.Boolean("--true",!1);this.false=C.Option.Boolean("--false",!1)}async execute(){let{project:e,workspace:n,cache:o,configuration:i}=await this.getRoot();q(e,this.condition);let r=this.false?!1:this.true?!0:O(e,this.condition);for(let a of this.nestedWorkspaces(n,e))this.materializeCondition(r,a);let s=await h.StreamReport.start({configuration:i,stdout:this.context.stdout,includeLogs:!0},async a=>{await e.resolveEverything({cache:o,report:a})});if(s.hasErrors())return s.exitCode();await e.persist()}*nestedWorkspaces(e,n){yield e;for(let o of e.workspacesCwds){let i=n.workspacesByCwd.get(o);i&&(yield*this.nestedWorkspaces(i,n))}}materializeCondition(e,n){for(let i of R){let r=n.manifest.getForScope(i).values();for(let s of r){if(!k(s.range))continue;let{test:a,consequent:c,alternate:d}=x(s);if(a!==this.condition)continue;let u=e?c:d;u?n.manifest[i].set(s.identHash,h.structUtils.makeDescriptor(s,u)):n.manifest[i].delete(s.identHash)}}let o=n.manifest.raw;if(te(o,"conditions",this.condition)){let[i,r]=o.conditions[this.condition],s=e?i:r;if(s)for(let[a,c]of Object.entries(s))c===null?delete o[a]:o[a]=c;Object.keys(o.conditions).length===1?delete o.conditions:delete o.conditions[this.condition]}}async getRoot(){let e=await h.Configuration.find(this.context.cwd,this.context.plugins),[{project:n,workspace:o},i]=await Promise.all([h.Project.find(e,this.context.cwd),h.Cache.find(e,{immutable:!0})]);return{configuration:e,project:n,workspace:o,cache:i}}};U.paths=[["condition","materialize"]],U.usage=C.Command.Usage({description:"Evaluate and replace a condition in package.json files",details:"\n This command will replace all the occurrences of `` in the current workspace and in nested workspaces.\n\n The value of the condition (`true` or `false`) is based on the following sources, in descending priority order:\n\n - the `--true` or `--false` option;\n - the `` environment variable;\n - the default value specified in the Yarn configuration;\n - `false` by default.\n "}),U.schema=[ee.hasMutuallyExclusiveKeys(["true","false"])];var he={configuration:M,commands:[U],fetchers:[S],resolvers:[F],hooks:{beforeWorkspacePacking:Z}};return ke;})(); return plugin; } }; diff --git a/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json b/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json index d10645fe9b..5d7675ca64 100644 --- a/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json +++ b/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/codemods/babel-plugin-codemod-optional-catch-binding/package.json b/codemods/babel-plugin-codemod-optional-catch-binding/package.json index b26fa59d82..3944731938 100644 --- a/codemods/babel-plugin-codemod-optional-catch-binding/package.json +++ b/codemods/babel-plugin-codemod-optional-catch-binding/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/constraints.pro b/constraints.pro index 601c71c3da..e0c7f7b75b 100644 --- a/constraints.pro +++ b/constraints.pro @@ -74,3 +74,15 @@ gen_enforced_field(WorkspaceCwd, FieldName, ExpectedValue) :- gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, 'devDependencies') :- workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, 'devDependencies'), workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, 'dependencies'). + +% Enforces `exports` to be consistent +gen_enforced_field(WorkspaceCwd, 'exports', '{ ".": "./lib/index.js", "./package.json": "./package.json" }') :- + \+ workspace_field(WorkspaceCwd, 'private', true), + % Exclude packages with more complex `exports` + workspace_ident(WorkspaceCwd, WorkspaceIdent), + WorkspaceIdent \= '@babel/eslint-parser', + WorkspaceIdent \= '@babel/compat-data', + WorkspaceIdent \= '@babel/plugin-transform-react-jsx', % TODO: Remove in Babel 8 + WorkspaceIdent \= '@babel/helper-plugin-test-runner', % TODO: Remove in Babel 8 + WorkspaceIdent \= '@babel/standalone', + \+ atom_concat('@babel/runtime', _, WorkspaceIdent). diff --git a/packages/babel-cli/package.json b/packages/babel-cli/package.json index 995b582bf9..a0969ff77b 100644 --- a/packages/babel-cli/package.json +++ b/packages/babel-cli/package.json @@ -50,5 +50,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-code-frame/package.json b/packages/babel-code-frame/package.json index ecc5ffabbb..77f7591c00 100644 --- a/packages/babel-code-frame/package.json +++ b/packages/babel-code-frame/package.json @@ -25,5 +25,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-core/package.json b/packages/babel-core/package.json index 522adfc4f7..d655141cf1 100644 --- a/packages/babel-core/package.json +++ b/packages/babel-core/package.json @@ -72,5 +72,17 @@ "@types/resolve": "^1.3.2", "@types/semver": "^5.4.0", "@types/source-map": "^0.5.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-generator/package.json b/packages/babel-generator/package.json index 3445a9445a..6cb731a3c8 100644 --- a/packages/babel-generator/package.json +++ b/packages/babel-generator/package.json @@ -32,5 +32,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-annotate-as-pure/package.json b/packages/babel-helper-annotate-as-pure/package.json index 67cd8ec771..30e713997d 100644 --- a/packages/babel-helper-annotate-as-pure/package.json +++ b/packages/babel-helper-annotate-as-pure/package.json @@ -19,5 +19,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json b/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json index df5876fc98..e73883823c 100644 --- a/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json +++ b/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json @@ -20,5 +20,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-builder-react-jsx/package.json b/packages/babel-helper-builder-react-jsx/package.json index 6ce3c72fe7..349bd7568a 100644 --- a/packages/babel-helper-builder-react-jsx/package.json +++ b/packages/babel-helper-builder-react-jsx/package.json @@ -23,5 +23,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-compilation-targets/package.json b/packages/babel-helper-compilation-targets/package.json index 4ad1acaabf..7039bc65fd 100644 --- a/packages/babel-helper-compilation-targets/package.json +++ b/packages/babel-helper-compilation-targets/package.json @@ -11,7 +11,8 @@ }, "main": "./lib/index.js", "exports": { - ".": "./lib/index.js" + ".": "./lib/index.js", + "./package.json": "./package.json" }, "publishConfig": { "access": "public" diff --git a/packages/babel-helper-create-class-features-plugin/package.json b/packages/babel-helper-create-class-features-plugin/package.json index cafadba965..bbc4726078 100644 --- a/packages/babel-helper-create-class-features-plugin/package.json +++ b/packages/babel-helper-create-class-features-plugin/package.json @@ -37,5 +37,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-create-regexp-features-plugin/package.json b/packages/babel-helper-create-regexp-features-plugin/package.json index 0d3158ded5..162a99ebfd 100644 --- a/packages/babel-helper-create-regexp-features-plugin/package.json +++ b/packages/babel-helper-create-regexp-features-plugin/package.json @@ -30,5 +30,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-define-map/package.json b/packages/babel-helper-define-map/package.json index 87c77628f0..867fbdcdcc 100644 --- a/packages/babel-helper-define-map/package.json +++ b/packages/babel-helper-define-map/package.json @@ -20,5 +20,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-environment-visitor/package.json b/packages/babel-helper-environment-visitor/package.json index daf0f0466a..d468376f60 100644 --- a/packages/babel-helper-environment-visitor/package.json +++ b/packages/babel-helper-environment-visitor/package.json @@ -14,7 +14,8 @@ }, "main": "./lib/index.js", "exports": { - ".": "./lib/index.js" + ".": "./lib/index.js", + "./package.json": "./package.json" }, "dependencies": { "@babel/types": "workspace:^" diff --git a/packages/babel-helper-explode-assignable-expression/package.json b/packages/babel-helper-explode-assignable-expression/package.json index 381bd58336..ef502979f0 100644 --- a/packages/babel-helper-explode-assignable-expression/package.json +++ b/packages/babel-helper-explode-assignable-expression/package.json @@ -22,5 +22,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-fixtures/package.json b/packages/babel-helper-fixtures/package.json index 7df3326584..53980428af 100644 --- a/packages/babel-helper-fixtures/package.json +++ b/packages/babel-helper-fixtures/package.json @@ -22,5 +22,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-function-name/package.json b/packages/babel-helper-function-name/package.json index 0ec806d81b..ef31f8ca8a 100644 --- a/packages/babel-helper-function-name/package.json +++ b/packages/babel-helper-function-name/package.json @@ -21,5 +21,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-get-function-arity/package.json b/packages/babel-helper-get-function-arity/package.json index f4d123ab5a..3dc580ab28 100644 --- a/packages/babel-helper-get-function-arity/package.json +++ b/packages/babel-helper-get-function-arity/package.json @@ -19,5 +19,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-hoist-variables/package.json b/packages/babel-helper-hoist-variables/package.json index 6cb450ed04..1f323ca663 100644 --- a/packages/babel-helper-hoist-variables/package.json +++ b/packages/babel-helper-hoist-variables/package.json @@ -23,5 +23,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-member-expression-to-functions/package.json b/packages/babel-helper-member-expression-to-functions/package.json index aa83eba236..2d35bbea60 100644 --- a/packages/babel-helper-member-expression-to-functions/package.json +++ b/packages/babel-helper-member-expression-to-functions/package.json @@ -22,5 +22,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-module-imports/package.json b/packages/babel-helper-module-imports/package.json index 7ef5fc428c..d50a0a3a87 100644 --- a/packages/babel-helper-module-imports/package.json +++ b/packages/babel-helper-module-imports/package.json @@ -23,5 +23,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-module-transforms/package.json b/packages/babel-helper-module-transforms/package.json index c4873f9b3b..9cadcb163f 100644 --- a/packages/babel-helper-module-transforms/package.json +++ b/packages/babel-helper-module-transforms/package.json @@ -26,5 +26,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-optimise-call-expression/package.json b/packages/babel-helper-optimise-call-expression/package.json index 48b46e50af..dbc2c209c4 100644 --- a/packages/babel-helper-optimise-call-expression/package.json +++ b/packages/babel-helper-optimise-call-expression/package.json @@ -23,5 +23,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-plugin-test-runner/package.json b/packages/babel-helper-plugin-test-runner/package.json index c9eeaad0bb..c183e18262 100644 --- a/packages/babel-helper-plugin-test-runner/package.json +++ b/packages/babel-helper-plugin-test-runner/package.json @@ -33,5 +33,21 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + { + "exports": { + ".": { + "import": "./esm.mjs", + "default": "./lib/index.js" + }, + "./package.json": "./package.json" + } + }, + { + "exports": null + } + ] + } } diff --git a/packages/babel-helper-plugin-utils/package.json b/packages/babel-helper-plugin-utils/package.json index 4566dae44f..b7f92a12f1 100644 --- a/packages/babel-helper-plugin-utils/package.json +++ b/packages/babel-helper-plugin-utils/package.json @@ -16,5 +16,17 @@ "main": "./lib/index.js", "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-remap-async-to-generator/package.json b/packages/babel-helper-remap-async-to-generator/package.json index a94723727f..ac666980c8 100644 --- a/packages/babel-helper-remap-async-to-generator/package.json +++ b/packages/babel-helper-remap-async-to-generator/package.json @@ -24,5 +24,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-replace-supers/package.json b/packages/babel-helper-replace-supers/package.json index b18c9e1bce..f5fc7c0ddf 100644 --- a/packages/babel-helper-replace-supers/package.json +++ b/packages/babel-helper-replace-supers/package.json @@ -23,5 +23,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-simple-access/package.json b/packages/babel-helper-simple-access/package.json index bb1472025f..0e87da8a1d 100644 --- a/packages/babel-helper-simple-access/package.json +++ b/packages/babel-helper-simple-access/package.json @@ -22,5 +22,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-split-export-declaration/package.json b/packages/babel-helper-split-export-declaration/package.json index 122d477400..a0ec0f52d0 100644 --- a/packages/babel-helper-split-export-declaration/package.json +++ b/packages/babel-helper-split-export-declaration/package.json @@ -19,5 +19,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helper-transform-fixture-test-runner/package.json b/packages/babel-helper-transform-fixture-test-runner/package.json index 9add4c64e3..32ec246d36 100644 --- a/packages/babel-helper-transform-fixture-test-runner/package.json +++ b/packages/babel-helper-transform-fixture-test-runner/package.json @@ -28,5 +28,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-helper-validator-identifier/package.json b/packages/babel-helper-validator-identifier/package.json index c1834b3357..ac83695930 100644 --- a/packages/babel-helper-validator-identifier/package.json +++ b/packages/babel-helper-validator-identifier/package.json @@ -12,7 +12,10 @@ "access": "public" }, "main": "./lib/index.js", - "exports": "./lib/index.js", + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + }, "devDependencies": { "@unicode/unicode-14.0.0": "^1.2.1", "charcodes": "^0.2.0" diff --git a/packages/babel-helper-validator-option/package.json b/packages/babel-helper-validator-option/package.json index 7cb480a117..d3e8620e16 100644 --- a/packages/babel-helper-validator-option/package.json +++ b/packages/babel-helper-validator-option/package.json @@ -12,7 +12,10 @@ "access": "public" }, "main": "./lib/index.js", - "exports": "./lib/index.js", + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + }, "engines": { "node": ">=6.9.0" }, diff --git a/packages/babel-helper-wrap-function/package.json b/packages/babel-helper-wrap-function/package.json index 39571a9dde..f2f633fca5 100644 --- a/packages/babel-helper-wrap-function/package.json +++ b/packages/babel-helper-wrap-function/package.json @@ -22,5 +22,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-helpers/package.json b/packages/babel-helpers/package.json index 0086c2611c..349c453300 100644 --- a/packages/babel-helpers/package.json +++ b/packages/babel-helpers/package.json @@ -25,5 +25,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-highlight/package.json b/packages/babel-highlight/package.json index c063fe09ad..93bdef4bac 100644 --- a/packages/babel-highlight/package.json +++ b/packages/babel-highlight/package.json @@ -25,5 +25,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-node/package.json b/packages/babel-node/package.json index e9b1757361..0aede57b89 100644 --- a/packages/babel-node/package.json +++ b/packages/babel-node/package.json @@ -46,5 +46,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-parser/package.json b/packages/babel-parser/package.json index d6ea890228..aeb5222ea9 100644 --- a/packages/babel-parser/package.json +++ b/packages/babel-parser/package.json @@ -38,5 +38,17 @@ "@babel/helper-validator-identifier": "workspace:^", "charcodes": "^0.2.0" }, - "bin": "./bin/babel-parser.js" + "bin": "./bin/babel-parser.js", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json b/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json index a30ddb7a0b..aa24940271 100644 --- a/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json +++ b/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json @@ -14,9 +14,8 @@ }, "main": "./lib/index.js", "exports": { - ".": [ - "./lib/index.js" - ] + ".": "./lib/index.js", + "./package.json": "./package.json" }, "keywords": [ "babel-plugin", diff --git a/packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json b/packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json index aa19162318..4bc75646b6 100644 --- a/packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json +++ b/packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json @@ -14,9 +14,8 @@ }, "main": "./lib/index.js", "exports": { - ".": [ - "./lib/index.js" - ] + ".": "./lib/index.js", + "./package.json": "./package.json" }, "keywords": [ "babel-plugin", diff --git a/packages/babel-plugin-external-helpers/package.json b/packages/babel-plugin-external-helpers/package.json index 51d532faed..7494846c1b 100644 --- a/packages/babel-plugin-external-helpers/package.json +++ b/packages/babel-plugin-external-helpers/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-async-do-expressions/package.json b/packages/babel-plugin-proposal-async-do-expressions/package.json index c378758d70..5c26a8f7d7 100644 --- a/packages/babel-plugin-proposal-async-do-expressions/package.json +++ b/packages/babel-plugin-proposal-async-do-expressions/package.json @@ -13,7 +13,8 @@ }, "main": "./lib/index.js", "exports": { - ".": "./lib/index.js" + ".": "./lib/index.js", + "./package.json": "./package.json" }, "keywords": [ "babel-plugin" diff --git a/packages/babel-plugin-proposal-async-generator-functions/package.json b/packages/babel-plugin-proposal-async-generator-functions/package.json index 722d07a600..a94bbc3406 100644 --- a/packages/babel-plugin-proposal-async-generator-functions/package.json +++ b/packages/babel-plugin-proposal-async-generator-functions/package.json @@ -33,5 +33,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-class-properties/package.json b/packages/babel-plugin-proposal-class-properties/package.json index 5aa2e9938e..2a92c45f8b 100644 --- a/packages/babel-plugin-proposal-class-properties/package.json +++ b/packages/babel-plugin-proposal-class-properties/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-class-static-block/package.json b/packages/babel-plugin-proposal-class-static-block/package.json index 1e2c510064..226667545f 100644 --- a/packages/babel-plugin-proposal-class-static-block/package.json +++ b/packages/babel-plugin-proposal-class-static-block/package.json @@ -13,7 +13,8 @@ }, "main": "./lib/index.js", "exports": { - ".": "./lib/index.js" + ".": "./lib/index.js", + "./package.json": "./package.json" }, "keywords": [ "babel-plugin" diff --git a/packages/babel-plugin-proposal-decorators/package.json b/packages/babel-plugin-proposal-decorators/package.json index ae2ab752b0..6687c57e71 100644 --- a/packages/babel-plugin-proposal-decorators/package.json +++ b/packages/babel-plugin-proposal-decorators/package.json @@ -36,5 +36,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-plugin-proposal-do-expressions/package.json b/packages/babel-plugin-proposal-do-expressions/package.json index 49fc373f76..84a1c34820 100644 --- a/packages/babel-plugin-proposal-do-expressions/package.json +++ b/packages/babel-plugin-proposal-do-expressions/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-dynamic-import/package.json b/packages/babel-plugin-proposal-dynamic-import/package.json index 03594ee825..e5f8446ebe 100644 --- a/packages/babel-plugin-proposal-dynamic-import/package.json +++ b/packages/babel-plugin-proposal-dynamic-import/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-export-default-from/package.json b/packages/babel-plugin-proposal-export-default-from/package.json index 6f3175193a..720e7cc950 100644 --- a/packages/babel-plugin-proposal-export-default-from/package.json +++ b/packages/babel-plugin-proposal-export-default-from/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-export-namespace-from/package.json b/packages/babel-plugin-proposal-export-namespace-from/package.json index 7b21ad79c5..fa32402ae5 100644 --- a/packages/babel-plugin-proposal-export-namespace-from/package.json +++ b/packages/babel-plugin-proposal-export-namespace-from/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-function-bind/package.json b/packages/babel-plugin-proposal-function-bind/package.json index 6b1922b5d7..fb223d4ca7 100644 --- a/packages/babel-plugin-proposal-function-bind/package.json +++ b/packages/babel-plugin-proposal-function-bind/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-function-sent/package.json b/packages/babel-plugin-proposal-function-sent/package.json index 2eb25f10dd..218fb65836 100644 --- a/packages/babel-plugin-proposal-function-sent/package.json +++ b/packages/babel-plugin-proposal-function-sent/package.json @@ -31,5 +31,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-json-strings/package.json b/packages/babel-plugin-proposal-json-strings/package.json index c22bb6f563..d2b52f1e92 100644 --- a/packages/babel-plugin-proposal-json-strings/package.json +++ b/packages/babel-plugin-proposal-json-strings/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-logical-assignment-operators/package.json b/packages/babel-plugin-proposal-logical-assignment-operators/package.json index 8e64ea23ac..fc13f161c0 100644 --- a/packages/babel-plugin-proposal-logical-assignment-operators/package.json +++ b/packages/babel-plugin-proposal-logical-assignment-operators/package.json @@ -32,5 +32,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json b/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json index 28f9e9bf63..27c53ce4ee 100644 --- a/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json +++ b/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-numeric-separator/package.json b/packages/babel-plugin-proposal-numeric-separator/package.json index 8aaed05adc..509b248a5c 100644 --- a/packages/babel-plugin-proposal-numeric-separator/package.json +++ b/packages/babel-plugin-proposal-numeric-separator/package.json @@ -32,5 +32,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-object-rest-spread/package.json b/packages/babel-plugin-proposal-object-rest-spread/package.json index 5f7fb6e280..6c29bae49c 100644 --- a/packages/babel-plugin-proposal-object-rest-spread/package.json +++ b/packages/babel-plugin-proposal-object-rest-spread/package.json @@ -34,5 +34,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-optional-catch-binding/package.json b/packages/babel-plugin-proposal-optional-catch-binding/package.json index 5a0bc35b88..5fdc676031 100644 --- a/packages/babel-plugin-proposal-optional-catch-binding/package.json +++ b/packages/babel-plugin-proposal-optional-catch-binding/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-optional-chaining/package.json b/packages/babel-plugin-proposal-optional-chaining/package.json index 7125ad9243..008104a3b4 100644 --- a/packages/babel-plugin-proposal-optional-chaining/package.json +++ b/packages/babel-plugin-proposal-optional-chaining/package.json @@ -33,5 +33,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-partial-application/package.json b/packages/babel-plugin-proposal-partial-application/package.json index 3f18f3e569..a15654b9d2 100644 --- a/packages/babel-plugin-proposal-partial-application/package.json +++ b/packages/babel-plugin-proposal-partial-application/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-pipeline-operator/package.json b/packages/babel-plugin-proposal-pipeline-operator/package.json index ae370fba6c..452a136a0e 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/package.json +++ b/packages/babel-plugin-proposal-pipeline-operator/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-private-methods/package.json b/packages/babel-plugin-proposal-private-methods/package.json index f6a13de834..a7071590e3 100644 --- a/packages/babel-plugin-proposal-private-methods/package.json +++ b/packages/babel-plugin-proposal-private-methods/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-private-property-in-object/package.json b/packages/babel-plugin-proposal-private-property-in-object/package.json index 45942c9602..5b08098cf8 100644 --- a/packages/babel-plugin-proposal-private-property-in-object/package.json +++ b/packages/babel-plugin-proposal-private-property-in-object/package.json @@ -32,5 +32,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-record-and-tuple/package.json b/packages/babel-plugin-proposal-record-and-tuple/package.json index e95a6404ea..314be606f7 100644 --- a/packages/babel-plugin-proposal-record-and-tuple/package.json +++ b/packages/babel-plugin-proposal-record-and-tuple/package.json @@ -12,7 +12,10 @@ "access": "public" }, "main": "./lib/index.js", - "exports": "./lib/index.js", + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + }, "keywords": [ "babel-plugin" ], diff --git a/packages/babel-plugin-proposal-throw-expressions/package.json b/packages/babel-plugin-proposal-throw-expressions/package.json index bc044d4b18..05ee9aa7dd 100644 --- a/packages/babel-plugin-proposal-throw-expressions/package.json +++ b/packages/babel-plugin-proposal-throw-expressions/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-proposal-unicode-property-regex/package.json b/packages/babel-plugin-proposal-unicode-property-regex/package.json index 381e501e02..8f72f7a334 100644 --- a/packages/babel-plugin-proposal-unicode-property-regex/package.json +++ b/packages/babel-plugin-proposal-unicode-property-regex/package.json @@ -36,5 +36,17 @@ "@babel/core": "workspace:^", "@babel/helper-plugin-test-runner": "workspace:^" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-async-do-expressions/package.json b/packages/babel-plugin-syntax-async-do-expressions/package.json index aeb42f4bf5..501d873d54 100644 --- a/packages/babel-plugin-syntax-async-do-expressions/package.json +++ b/packages/babel-plugin-syntax-async-do-expressions/package.json @@ -13,7 +13,8 @@ }, "main": "./lib/index.js", "exports": { - ".": "./lib/index.js" + ".": "./lib/index.js", + "./package.json": "./package.json" }, "keywords": [ "babel-plugin" diff --git a/packages/babel-plugin-syntax-decimal/package.json b/packages/babel-plugin-syntax-decimal/package.json index aa28b9a7db..d41b184166 100644 --- a/packages/babel-plugin-syntax-decimal/package.json +++ b/packages/babel-plugin-syntax-decimal/package.json @@ -13,7 +13,8 @@ }, "main": "./lib/index.js", "exports": { - ".": "./lib/index.js" + ".": "./lib/index.js", + "./package.json": "./package.json" }, "keywords": [ "babel-plugin" diff --git a/packages/babel-plugin-syntax-decorators/package.json b/packages/babel-plugin-syntax-decorators/package.json index 1dfdfe1eea..a4ec9daa5a 100644 --- a/packages/babel-plugin-syntax-decorators/package.json +++ b/packages/babel-plugin-syntax-decorators/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-do-expressions/package.json b/packages/babel-plugin-syntax-do-expressions/package.json index face0a8cd3..a3f8586d64 100644 --- a/packages/babel-plugin-syntax-do-expressions/package.json +++ b/packages/babel-plugin-syntax-do-expressions/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-export-default-from/package.json b/packages/babel-plugin-syntax-export-default-from/package.json index 57171d090d..fd97aef26b 100644 --- a/packages/babel-plugin-syntax-export-default-from/package.json +++ b/packages/babel-plugin-syntax-export-default-from/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-flow/package.json b/packages/babel-plugin-syntax-flow/package.json index 705884a6a7..131fa8a5f0 100644 --- a/packages/babel-plugin-syntax-flow/package.json +++ b/packages/babel-plugin-syntax-flow/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-function-bind/package.json b/packages/babel-plugin-syntax-function-bind/package.json index 5574f90d20..1f60ad7e3c 100644 --- a/packages/babel-plugin-syntax-function-bind/package.json +++ b/packages/babel-plugin-syntax-function-bind/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-function-sent/package.json b/packages/babel-plugin-syntax-function-sent/package.json index 60c51febd5..26c16e21e8 100644 --- a/packages/babel-plugin-syntax-function-sent/package.json +++ b/packages/babel-plugin-syntax-function-sent/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-import-assertions/package.json b/packages/babel-plugin-syntax-import-assertions/package.json index a748e6bfc6..32e6b3f361 100644 --- a/packages/babel-plugin-syntax-import-assertions/package.json +++ b/packages/babel-plugin-syntax-import-assertions/package.json @@ -27,5 +27,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-jsx/package.json b/packages/babel-plugin-syntax-jsx/package.json index 505a533aba..8c08f46e80 100644 --- a/packages/babel-plugin-syntax-jsx/package.json +++ b/packages/babel-plugin-syntax-jsx/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-module-blocks/package.json b/packages/babel-plugin-syntax-module-blocks/package.json index 2d6da90eb0..fea505cf9f 100644 --- a/packages/babel-plugin-syntax-module-blocks/package.json +++ b/packages/babel-plugin-syntax-module-blocks/package.json @@ -13,7 +13,8 @@ }, "main": "./lib/index.js", "exports": { - ".": "./lib/index.js" + ".": "./lib/index.js", + "./package.json": "./package.json" }, "keywords": [ "babel-plugin" diff --git a/packages/babel-plugin-syntax-partial-application/package.json b/packages/babel-plugin-syntax-partial-application/package.json index 2db0aefb94..97913e200b 100644 --- a/packages/babel-plugin-syntax-partial-application/package.json +++ b/packages/babel-plugin-syntax-partial-application/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-pipeline-operator/package.json b/packages/babel-plugin-syntax-pipeline-operator/package.json index 3a01f5cbbd..fdef8d2ff5 100644 --- a/packages/babel-plugin-syntax-pipeline-operator/package.json +++ b/packages/babel-plugin-syntax-pipeline-operator/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-record-and-tuple/package.json b/packages/babel-plugin-syntax-record-and-tuple/package.json index b04c96917a..8c0b3a05b5 100644 --- a/packages/babel-plugin-syntax-record-and-tuple/package.json +++ b/packages/babel-plugin-syntax-record-and-tuple/package.json @@ -27,5 +27,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-throw-expressions/package.json b/packages/babel-plugin-syntax-throw-expressions/package.json index 72f16470ce..0b162a1747 100644 --- a/packages/babel-plugin-syntax-throw-expressions/package.json +++ b/packages/babel-plugin-syntax-throw-expressions/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-syntax-typescript/package.json b/packages/babel-plugin-syntax-typescript/package.json index af3bcd7561..fce8f4de1e 100644 --- a/packages/babel-plugin-syntax-typescript/package.json +++ b/packages/babel-plugin-syntax-typescript/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-arrow-functions/package.json b/packages/babel-plugin-transform-arrow-functions/package.json index 9dfc9e84af..e0032d8b19 100644 --- a/packages/babel-plugin-transform-arrow-functions/package.json +++ b/packages/babel-plugin-transform-arrow-functions/package.json @@ -31,5 +31,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-async-to-generator/package.json b/packages/babel-plugin-transform-async-to-generator/package.json index 7872e5158e..370837c64c 100644 --- a/packages/babel-plugin-transform-async-to-generator/package.json +++ b/packages/babel-plugin-transform-async-to-generator/package.json @@ -31,5 +31,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-block-scoped-functions/package.json b/packages/babel-plugin-transform-block-scoped-functions/package.json index eec289f0cd..86d2b3139a 100644 --- a/packages/babel-plugin-transform-block-scoped-functions/package.json +++ b/packages/babel-plugin-transform-block-scoped-functions/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-block-scoping/package.json b/packages/babel-plugin-transform-block-scoping/package.json index e920a2c3d2..6710746c7a 100644 --- a/packages/babel-plugin-transform-block-scoping/package.json +++ b/packages/babel-plugin-transform-block-scoping/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-classes/package.json b/packages/babel-plugin-transform-classes/package.json index e14e1139a1..f77c244f0a 100644 --- a/packages/babel-plugin-transform-classes/package.json +++ b/packages/babel-plugin-transform-classes/package.json @@ -37,5 +37,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-computed-properties/package.json b/packages/babel-plugin-transform-computed-properties/package.json index e9e34cc496..e1274237b8 100644 --- a/packages/babel-plugin-transform-computed-properties/package.json +++ b/packages/babel-plugin-transform-computed-properties/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-destructuring/package.json b/packages/babel-plugin-transform-destructuring/package.json index 398b5a05cf..1735eaedc6 100644 --- a/packages/babel-plugin-transform-destructuring/package.json +++ b/packages/babel-plugin-transform-destructuring/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-dotall-regex/package.json b/packages/babel-plugin-transform-dotall-regex/package.json index c337991864..f0b2c7586a 100644 --- a/packages/babel-plugin-transform-dotall-regex/package.json +++ b/packages/babel-plugin-transform-dotall-regex/package.json @@ -35,5 +35,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-duplicate-keys/package.json b/packages/babel-plugin-transform-duplicate-keys/package.json index 5706fcb87f..c22ead4eb1 100644 --- a/packages/babel-plugin-transform-duplicate-keys/package.json +++ b/packages/babel-plugin-transform-duplicate-keys/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-exponentiation-operator/package.json b/packages/babel-plugin-transform-exponentiation-operator/package.json index f9628dc0ee..c56db1ffbd 100644 --- a/packages/babel-plugin-transform-exponentiation-operator/package.json +++ b/packages/babel-plugin-transform-exponentiation-operator/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-flow-comments/package.json b/packages/babel-plugin-transform-flow-comments/package.json index 023a16bda7..94ea0840ed 100644 --- a/packages/babel-plugin-transform-flow-comments/package.json +++ b/packages/babel-plugin-transform-flow-comments/package.json @@ -31,5 +31,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-flow-strip-types/package.json b/packages/babel-plugin-transform-flow-strip-types/package.json index edd34532d1..4a9a2f1041 100644 --- a/packages/babel-plugin-transform-flow-strip-types/package.json +++ b/packages/babel-plugin-transform-flow-strip-types/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-for-of/package.json b/packages/babel-plugin-transform-for-of/package.json index bab8627d0e..db9b9eab41 100644 --- a/packages/babel-plugin-transform-for-of/package.json +++ b/packages/babel-plugin-transform-for-of/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-function-name/package.json b/packages/babel-plugin-transform-function-name/package.json index 00bdd2497c..3d865e5f62 100644 --- a/packages/babel-plugin-transform-function-name/package.json +++ b/packages/babel-plugin-transform-function-name/package.json @@ -31,5 +31,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-instanceof/package.json b/packages/babel-plugin-transform-instanceof/package.json index f2a29d7e58..a41a973bfc 100644 --- a/packages/babel-plugin-transform-instanceof/package.json +++ b/packages/babel-plugin-transform-instanceof/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-jscript/package.json b/packages/babel-plugin-transform-jscript/package.json index c955a0dde8..e67ed78bdd 100644 --- a/packages/babel-plugin-transform-jscript/package.json +++ b/packages/babel-plugin-transform-jscript/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-literals/package.json b/packages/babel-plugin-transform-literals/package.json index 4c19d99127..1c5dac9128 100644 --- a/packages/babel-plugin-transform-literals/package.json +++ b/packages/babel-plugin-transform-literals/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-member-expression-literals/package.json b/packages/babel-plugin-transform-member-expression-literals/package.json index 0cffa50471..9fbcc04584 100644 --- a/packages/babel-plugin-transform-member-expression-literals/package.json +++ b/packages/babel-plugin-transform-member-expression-literals/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-modules-amd/package.json b/packages/babel-plugin-transform-modules-amd/package.json index c57202ecc3..9f78394cf3 100644 --- a/packages/babel-plugin-transform-modules-amd/package.json +++ b/packages/babel-plugin-transform-modules-amd/package.json @@ -32,5 +32,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-modules-commonjs/package.json b/packages/babel-plugin-transform-modules-commonjs/package.json index 217282b0a0..7bc89e958f 100644 --- a/packages/babel-plugin-transform-modules-commonjs/package.json +++ b/packages/babel-plugin-transform-modules-commonjs/package.json @@ -35,5 +35,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-modules-systemjs/package.json b/packages/babel-plugin-transform-modules-systemjs/package.json index 612e8488c5..eb52a06aca 100644 --- a/packages/babel-plugin-transform-modules-systemjs/package.json +++ b/packages/babel-plugin-transform-modules-systemjs/package.json @@ -34,5 +34,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-modules-umd/package.json b/packages/babel-plugin-transform-modules-umd/package.json index 999fd09435..fe89d62fe7 100644 --- a/packages/babel-plugin-transform-modules-umd/package.json +++ b/packages/babel-plugin-transform-modules-umd/package.json @@ -31,5 +31,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-named-capturing-groups-regex/package.json b/packages/babel-plugin-transform-named-capturing-groups-regex/package.json index cbfb14a8c7..0dd3e24a22 100644 --- a/packages/babel-plugin-transform-named-capturing-groups-regex/package.json +++ b/packages/babel-plugin-transform-named-capturing-groups-regex/package.json @@ -34,5 +34,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-new-target/package.json b/packages/babel-plugin-transform-new-target/package.json index 632da75d34..4791202f57 100644 --- a/packages/babel-plugin-transform-new-target/package.json +++ b/packages/babel-plugin-transform-new-target/package.json @@ -31,5 +31,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-object-assign/package.json b/packages/babel-plugin-transform-object-assign/package.json index 93eb67757b..6e659ed81c 100644 --- a/packages/babel-plugin-transform-object-assign/package.json +++ b/packages/babel-plugin-transform-object-assign/package.json @@ -28,5 +28,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json b/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json index 04eebd1b45..a0de012934 100644 --- a/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json +++ b/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-object-super/package.json b/packages/babel-plugin-transform-object-super/package.json index a9714ed6c2..b98d4b54d5 100644 --- a/packages/babel-plugin-transform-object-super/package.json +++ b/packages/babel-plugin-transform-object-super/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-parameters/package.json b/packages/babel-plugin-transform-parameters/package.json index c666b18994..8fa6534ac6 100644 --- a/packages/babel-plugin-transform-parameters/package.json +++ b/packages/babel-plugin-transform-parameters/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-property-literals/package.json b/packages/babel-plugin-transform-property-literals/package.json index 3e99be0d96..0480e07881 100644 --- a/packages/babel-plugin-transform-property-literals/package.json +++ b/packages/babel-plugin-transform-property-literals/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-property-mutators/package.json b/packages/babel-plugin-transform-property-mutators/package.json index aca71c43ef..03ead416f9 100644 --- a/packages/babel-plugin-transform-property-mutators/package.json +++ b/packages/babel-plugin-transform-property-mutators/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-proto-to-assign/package.json b/packages/babel-plugin-transform-proto-to-assign/package.json index 613b661864..a95d70c8c1 100644 --- a/packages/babel-plugin-transform-proto-to-assign/package.json +++ b/packages/babel-plugin-transform-proto-to-assign/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-constant-elements/package.json b/packages/babel-plugin-transform-react-constant-elements/package.json index e3284c4202..354a3befeb 100644 --- a/packages/babel-plugin-transform-react-constant-elements/package.json +++ b/packages/babel-plugin-transform-react-constant-elements/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-display-name/package.json b/packages/babel-plugin-transform-react-display-name/package.json index 77df0b85a8..1d69a048e3 100644 --- a/packages/babel-plugin-transform-react-display-name/package.json +++ b/packages/babel-plugin-transform-react-display-name/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-inline-elements/package.json b/packages/babel-plugin-transform-react-inline-elements/package.json index 7a46f3ff73..97856d7872 100644 --- a/packages/babel-plugin-transform-react-inline-elements/package.json +++ b/packages/babel-plugin-transform-react-inline-elements/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-jsx-compat/package.json b/packages/babel-plugin-transform-react-jsx-compat/package.json index 9ca55aca53..0bff13f198 100644 --- a/packages/babel-plugin-transform-react-jsx-compat/package.json +++ b/packages/babel-plugin-transform-react-jsx-compat/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-jsx-development/package.json b/packages/babel-plugin-transform-react-jsx-development/package.json index 42f739e782..5120891076 100644 --- a/packages/babel-plugin-transform-react-jsx-development/package.json +++ b/packages/babel-plugin-transform-react-jsx-development/package.json @@ -28,5 +28,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-jsx-self/package.json b/packages/babel-plugin-transform-react-jsx-self/package.json index e3d7680232..94777f19c4 100644 --- a/packages/babel-plugin-transform-react-jsx-self/package.json +++ b/packages/babel-plugin-transform-react-jsx-self/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-jsx-source/package.json b/packages/babel-plugin-transform-react-jsx-source/package.json index 1f82b4a3f2..978eb52aea 100644 --- a/packages/babel-plugin-transform-react-jsx-source/package.json +++ b/packages/babel-plugin-transform-react-jsx-source/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-jsx/package.json b/packages/babel-plugin-transform-react-jsx/package.json index dafccbdd8a..fee1e75773 100644 --- a/packages/babel-plugin-transform-react-jsx/package.json +++ b/packages/babel-plugin-transform-react-jsx/package.json @@ -34,5 +34,18 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./lib/development": "./lib/development.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-react-pure-annotations/package.json b/packages/babel-plugin-transform-react-pure-annotations/package.json index 0387019814..e9713f1e29 100644 --- a/packages/babel-plugin-transform-react-pure-annotations/package.json +++ b/packages/babel-plugin-transform-react-pure-annotations/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-regenerator/package.json b/packages/babel-plugin-transform-regenerator/package.json index d8223b12c2..f44cdf697e 100644 --- a/packages/babel-plugin-transform-regenerator/package.json +++ b/packages/babel-plugin-transform-regenerator/package.json @@ -26,5 +26,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-plugin-transform-reserved-words/package.json b/packages/babel-plugin-transform-reserved-words/package.json index 53a6dcee9e..211f24860d 100644 --- a/packages/babel-plugin-transform-reserved-words/package.json +++ b/packages/babel-plugin-transform-reserved-words/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-runtime/package.json b/packages/babel-plugin-transform-runtime/package.json index b262b199cf..228c7b139d 100644 --- a/packages/babel-plugin-transform-runtime/package.json +++ b/packages/babel-plugin-transform-runtime/package.json @@ -46,5 +46,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-shorthand-properties/package.json b/packages/babel-plugin-transform-shorthand-properties/package.json index f015309b8b..decbbee440 100644 --- a/packages/babel-plugin-transform-shorthand-properties/package.json +++ b/packages/babel-plugin-transform-shorthand-properties/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-spread/package.json b/packages/babel-plugin-transform-spread/package.json index b874d5e515..36011a4c39 100644 --- a/packages/babel-plugin-transform-spread/package.json +++ b/packages/babel-plugin-transform-spread/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-sticky-regex/package.json b/packages/babel-plugin-transform-sticky-regex/package.json index d611610500..952ccac8b5 100644 --- a/packages/babel-plugin-transform-sticky-regex/package.json +++ b/packages/babel-plugin-transform-sticky-regex/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-strict-mode/package.json b/packages/babel-plugin-transform-strict-mode/package.json index fdfb02d0c1..5a0c54bd68 100644 --- a/packages/babel-plugin-transform-strict-mode/package.json +++ b/packages/babel-plugin-transform-strict-mode/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-template-literals/package.json b/packages/babel-plugin-transform-template-literals/package.json index 84ebcc64ae..ab33809642 100644 --- a/packages/babel-plugin-transform-template-literals/package.json +++ b/packages/babel-plugin-transform-template-literals/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-typeof-symbol/package.json b/packages/babel-plugin-transform-typeof-symbol/package.json index 2085aa888b..369f36d4fd 100644 --- a/packages/babel-plugin-transform-typeof-symbol/package.json +++ b/packages/babel-plugin-transform-typeof-symbol/package.json @@ -32,5 +32,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-typescript/package.json b/packages/babel-plugin-transform-typescript/package.json index 6293411eec..dae322916d 100644 --- a/packages/babel-plugin-transform-typescript/package.json +++ b/packages/babel-plugin-transform-typescript/package.json @@ -34,5 +34,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-unicode-escapes/package.json b/packages/babel-plugin-transform-unicode-escapes/package.json index bbb0f91d1a..5e8cfd387a 100644 --- a/packages/babel-plugin-transform-unicode-escapes/package.json +++ b/packages/babel-plugin-transform-unicode-escapes/package.json @@ -29,5 +29,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-plugin-transform-unicode-regex/package.json b/packages/babel-plugin-transform-unicode-regex/package.json index f217df1560..3d0ddb4533 100644 --- a/packages/babel-plugin-transform-unicode-regex/package.json +++ b/packages/babel-plugin-transform-unicode-regex/package.json @@ -30,5 +30,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-preset-env/package.json b/packages/babel-preset-env/package.json index 82bad5a8a0..18d8f1f05b 100644 --- a/packages/babel-preset-env/package.json +++ b/packages/babel-preset-env/package.json @@ -102,5 +102,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-preset-flow/package.json b/packages/babel-preset-flow/package.json index 2f42d6b82a..c7294971cd 100644 --- a/packages/babel-preset-flow/package.json +++ b/packages/babel-preset-flow/package.json @@ -35,5 +35,17 @@ "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20flow%22+is%3Aopen", "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-preset-react/package.json b/packages/babel-preset-react/package.json index f129462bd4..8875d15a8d 100644 --- a/packages/babel-preset-react/package.json +++ b/packages/babel-preset-react/package.json @@ -32,5 +32,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-preset-typescript/package.json b/packages/babel-preset-typescript/package.json index cebd8847f6..cc3051abf0 100644 --- a/packages/babel-preset-typescript/package.json +++ b/packages/babel-preset-typescript/package.json @@ -33,5 +33,17 @@ "engines": { "node": ">=6.9.0" }, - "author": "The Babel Team (https://babel.dev/team)" + "author": "The Babel Team (https://babel.dev/team)", + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" + } } diff --git a/packages/babel-register/package.json b/packages/babel-register/package.json index d1c4b57ba7..eff87e7ee0 100644 --- a/packages/babel-register/package.json +++ b/packages/babel-register/package.json @@ -35,5 +35,17 @@ "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20register%22+is%3Aopen", "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-standalone/package.json b/packages/babel-standalone/package.json index 7948264b16..8d552a63c8 100644 --- a/packages/babel-standalone/package.json +++ b/packages/babel-standalone/package.json @@ -131,5 +131,19 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./babel.js", + "./babel.js": "./babel.js", + "./babel.min.js": "./babel.min.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-template/package.json b/packages/babel-template/package.json index 9cea19c6f7..ba22d5568e 100644 --- a/packages/babel-template/package.json +++ b/packages/babel-template/package.json @@ -22,5 +22,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-traverse/package.json b/packages/babel-traverse/package.json index 534c25cdf9..aa6de60f83 100644 --- a/packages/babel-traverse/package.json +++ b/packages/babel-traverse/package.json @@ -32,5 +32,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } } diff --git a/packages/babel-traverse/scripts/generators/validators.js b/packages/babel-traverse/scripts/generators/validators.js index a3ec31a3eb..f806fc76c7 100644 --- a/packages/babel-traverse/scripts/generators/validators.js +++ b/packages/babel-traverse/scripts/generators/validators.js @@ -1,6 +1,5 @@ import t from "@babel/types"; import virtualTypes from "../../lib/path/lib/virtual-types.js"; -import definitions from "@babel/types/lib/definitions/index.js"; export default function generateValidators() { let output = `/* @@ -21,7 +20,7 @@ export interface NodePathValidators { for (const type of Object.keys(virtualTypes)) { const { types } = virtualTypes[type]; if (type[0] === "_") continue; - if (definitions.NODE_FIELDS[type] || definitions.FLIPPED_ALIAS_KEYS[type]) { + if (t.NODE_FIELDS[type] || t.FLIPPED_ALIAS_KEYS[type]) { output += `is${type}(opts?: object): this is NodePath;`; } else if (types /* in VirtualTypeAliases */) { output += `is${type}(opts?: object): this is NodePath;`; diff --git a/packages/babel-types/package.json b/packages/babel-types/package.json index bf1bf7e993..ec86350d42 100644 --- a/packages/babel-types/package.json +++ b/packages/babel-types/package.json @@ -35,5 +35,17 @@ }, "engines": { "node": ">=6.9.0" + }, + "conditions": { + "BABEL_8_BREAKING": [ + null, + { + "exports": null + } + ] + }, + "exports": { + ".": "./lib/index.js", + "./package.json": "./package.json" } }