From 3db2b8557fbb4c812a1efb7ed0171bf2bc79bac2 Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Thu, 11 Feb 2021 12:39:42 +0100 Subject: [PATCH] babel-plugin-makepot: don't transpile the package code (#28911) * babel-plugin-makepot: don't transpile the package code * Update lockfile --- package-lock.json | 1 - packages/babel-plugin-makepot/{src => }/index.js | 0 packages/babel-plugin-makepot/package.json | 7 ++----- packages/babel-plugin-makepot/test/index.js | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) rename packages/babel-plugin-makepot/{src => }/index.js (100%) diff --git a/package-lock.json b/package-lock.json index 9e0f3ed441371b..1bb24d74650fb1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11743,7 +11743,6 @@ "version": "file:packages/babel-plugin-makepot", "dev": true, "requires": { - "@babel/runtime": "^7.12.5", "gettext-parser": "^1.3.1", "lodash": "^4.17.19" } diff --git a/packages/babel-plugin-makepot/src/index.js b/packages/babel-plugin-makepot/index.js similarity index 100% rename from packages/babel-plugin-makepot/src/index.js rename to packages/babel-plugin-makepot/index.js diff --git a/packages/babel-plugin-makepot/package.json b/packages/babel-plugin-makepot/package.json index 29f793082b0e66..e22b648f22129a 100644 --- a/packages/babel-plugin-makepot/package.json +++ b/packages/babel-plugin-makepot/package.json @@ -24,13 +24,10 @@ "node": ">=12" }, "files": [ - "build", - "build-module" + "index.js" ], - "main": "build/index.js", - "module": "build-module/index.js", + "main": "index.js", "dependencies": { - "@babel/runtime": "^7.12.5", "gettext-parser": "^1.3.1", "lodash": "^4.17.19" }, diff --git a/packages/babel-plugin-makepot/test/index.js b/packages/babel-plugin-makepot/test/index.js index da0121ca153e32..b2a737199c55e5 100644 --- a/packages/babel-plugin-makepot/test/index.js +++ b/packages/babel-plugin-makepot/test/index.js @@ -7,7 +7,7 @@ import traverse from '@babel/traverse'; /** * Internal dependencies */ -import babelPlugin from '../src'; +import babelPlugin from '..'; describe( 'babel-plugin', () => { const {