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 6ce962a2647a..c2da15055b96 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 d10645fe9b2a..5d7675ca6449 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 b26fa59d8280..394473193899 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 601c71c3dab0..e0c7f7b75b13 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 995b582bf9a3..a0969ff77b8e 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 ecc5ffabbb31..77f7591c0089 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 522adfc4f71c..d655141cf1c0 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 3445a9445afc..6cb731a3c899 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 67cd8ec77124..30e713997dc7 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 df5876fc98a6..e73883823c13 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 6ce3c72fe71b..349bd7568a6d 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 4ad1acaabfd6..7039bc65fd50 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 cafadba9652e..bbc472607817 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 0d3158ded508..162a99ebfdb0 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 87c77628f02b..867fbdcdcc23 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 daf0f0466af2..d468376f60df 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 381bd583366a..ef502979f0d2 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 7df33265840c..53980428af50 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 0ec806d81b4b..ef31f8ca8a1b 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 f4d123ab5a9a..3dc580ab2842 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 6cb450ed040a..1f323ca663a4 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 aa83eba23696..2d35bbea60fa 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 7ef5fc428cff..d50a0a3a87b3 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 c4873f9b3b5f..9cadcb163f7f 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 48b46e50afad..dbc2c209c4d3 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 c9eeaad0bb7e..c183e1826201 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 4566dae44fa8..b7f92a12f1c1 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 a94723727f2a..ac666980c845 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 b18c9e1bcee9..f5fc7c0ddfc1 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 bb1472025f4a..0e87da8a1d9c 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 122d47740000..a0ec0f52d054 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 9add4c64e32a..32ec246d36a4 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 c1834b33576f..ac8369593066 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 7cb480a117eb..d3e8620e166b 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 39571a9ddef5..f2f633fca51b 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 0086c2611c6e..349c4533004d 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 c063fe09aded..93bdef4bac7b 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 e9b175736120..0aede57b8953 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 d6ea890228f0..aeb5222ea957 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 a30ddb7a0b6d..aa249402711a 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 aa19162318cd..4bc75646b60a 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 51d532faed3e..7494846c1b02 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 c378758d7055..5c26a8f7d7ea 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 722d07a600a5..a94bbc340626 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 5aa2e9938eab..2a92c45f8b91 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 1e2c51006404..226667545f6c 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 ae2ab752b092..6687c57e7164 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 49fc373f76d6..84a1c34820e5 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 03594ee825ca..e5f8446ebee7 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 6f3175193aba..720e7cc9508a 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 7b21ad79c5d6..fa32402ae572 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 6b1922b5d75f..fb223d4ca794 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 2eb25f10dded..218fb6583611 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 c22bb6f56335..d2b52f1e9292 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 8e64ea23ac75..fc13f161c022 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 28f9e9bf63e0..27c53ce4eef4 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 8aaed05adc87..509b248a5c0b 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 5f7fb6e280b9..6c29bae49c69 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 5a0bc35b88a4..5fdc676031be 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 7125ad9243c3..008104a3b42d 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 3f18f3e5699c..a15654b9d2f0 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 ae370fba6c14..452a136a0efe 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 f6a13de834cb..a7071590e367 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 45942c9602cf..5b08098cf830 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 e95a6404ea54..314be606f72a 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 bc044d4b18c8..05ee9aa7dd6a 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 381e501e02a9..8f72f7a3349c 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 aeb42f4bf5e6..501d873d545d 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 aa28b9a7dbd9..d41b1841665b 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 1dfdfe1eeae5..a4ec9daa5a35 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 face0a8cd33f..a3f8586d6488 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 57171d090d16..fd97aef26b10 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 705884a6a709..131fa8a5f0cb 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 5574f90d2073..1f60ad7e3c76 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 60c51febd5f8..26c16e21e82f 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 a748e6bfc6fb..32e6b3f361b7 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 505a533aba5c..8c08f46e80b0 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 2d6da90eb0ab..fea505cf9fb3 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 2db0aefb94dd..97913e200bb7 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 3a01f5cbbd2c..fdef8d2ff50c 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 b04c96917ac8..8c0b3a05b572 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 72f16470ce32..0b162a1747c6 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 af3bcd7561e7..fce8f4de1e16 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 9dfc9e84aff4..e0032d8b1901 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 7872e5158e32..370837c64c17 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 eec289f0cd46..86d2b3139ab6 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 e920a2c3d2d7..6710746c7ac9 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 e14e1139a117..f77c244f0afe 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 e9e34cc49640..e1274237b831 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 398b5a05cf28..1735eaedc60d 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 c337991864f4..f0b2c7586ab7 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 5706fcb87f1d..c22ead4eb170 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 f9628dc0ee69..c56db1ffbdae 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 023a16bda759..94ea0840ed7c 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 edd34532d178..4a9a2f1041a1 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 bab8627d0e86..db9b9eab416e 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 00bdd2497c55..3d865e5f6231 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 f2a29d7e586e..a41a973bfcbb 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 c955a0dde89b..e67ed78bdd9d 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 4c19d9912730..1c5dac912850 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 0cffa5047189..9fbcc04584bc 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 c57202ecc3e6..9f78394cf3b8 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 217282b0a054..7bc89e958f30 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 612e8488c5eb..eb52a06acaef 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 999fd0943575..fe89d62fe748 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 cbfb14a8c712..0dd3e24a2206 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 632da75d34d8..4791202f572c 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 93eb67757bbb..6e659ed81c02 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 04eebd1b45d7..a0de01293496 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 a9714ed6c2a5..b98d4b54d5ed 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 c666b18994a2..8fa6534ac6a4 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 3e99be0d9623..0480e0788104 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 aca71c43efc9..03ead416f9c3 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 613b661864d8..a95d70c8c1cf 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 e3284c420242..354a3befebba 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 77df0b85a8d5..1d69a048e384 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 7a46f3ff7340..97856d7872ee 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 9ca55aca5387..0bff13f19877 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 42f739e782f2..51208910766b 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 e3d7680232e8..94777f19c435 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 1f82b4a3f270..978eb52aeaa1 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 dafccbdd8a31..fee1e7577388 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 03870198147c..e9713f1e29e3 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 d8223b12c289..f44cdf697e92 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 53a6dcee9e53..211f24860d5c 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 b262b199cfd0..228c7b139d3d 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 f015309b8b86..decbbee440fe 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 b874d5e5158d..36011a4c3986 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 d611610500db..952ccac8b52e 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 fdfb02d0c1ba..5a0c54bd6855 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 84ebcc64ae8e..ab33809642a0 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 2085aa888bff..369f36d4fdb4 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 6293411eecef..dae322916d74 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 bbb0f91d1a53..5e8cfd387a56 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 f217df15604e..3d0ddb4533b6 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 82bad5a8a0e7..18d8f1f05baa 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 2f42d6b82a8f..c7294971cd12 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 f129462bd47b..8875d15a8d3d 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 cebd8847f6b3..cc3051abf08c 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 d1c4b57ba7c6..eff87e7ee09c 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 7948264b1621..8d552a63c822 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 9cea19c6f70b..ba22d5568e79 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 534c25cdf96f..aa6de60f835c 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 a3ec31a3ebb8..f806fc76c724 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 bf1bf7e99388..ec86350d42b0 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" } }