Socket
Socket
Sign inDemoInstall

babel-plugin-add-module-metadata

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-add-module-metadata - npm Package Compare versions

Comparing version 2.18.1 to 2.18.2-alpha.0

3

lib/index.js

@@ -20,2 +20,3 @@ "use strict";

const babelUtil = __importStar(require("liferay-npm-build-tools-common/lib/babel-util"));
const file_path_1 = __importDefault(require("liferay-npm-build-tools-common/lib/file-path"));
const plugin_logger_1 = __importDefault(require("liferay-npm-build-tools-common/lib/plugin-logger"));

@@ -119,3 +120,3 @@ const path_1 = __importDefault(require("path"));

const { manifest } = babelIpc.get(state);
manifest.addModuleFlags(pkgId, path_1.default.relative(pkgDir, filename), {
manifest.addModuleFlags(pkgId, new file_path_1.default(path_1.default.relative(pkgDir, filename)).asPosix, {
esModule: true,

@@ -122,0 +123,0 @@ });

{
"name": "babel-plugin-add-module-metadata",
"version": "2.18.1",
"version": "2.18.2-alpha.0+7bd1167",
"description": "A Babel plugin to add AMD modules' metadata to the manifest.json file.",

@@ -12,6 +12,6 @@ "main": "lib/index.js",

"dependencies": {
"liferay-npm-build-tools-common": "2.18.1",
"liferay-npm-build-tools-common": "2.18.2-alpha.0+7bd1167",
"read-json-sync": "^2.0.1"
},
"gitHead": "47a81b28fc3a70de5dc8ceabf0d9bb6044a2d690"
"gitHead": "7bd1167c707a711bfeba622e5741168f287f6c71"
}

@@ -9,2 +9,3 @@ /**

import * as babelUtil from 'liferay-npm-build-tools-common/lib/babel-util';
import FilePath from 'liferay-npm-build-tools-common/lib/file-path';
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger';

@@ -136,5 +137,9 @@ import npath from 'path';

manifest.addModuleFlags(pkgId, npath.relative(pkgDir, filename), {
esModule: true,
});
manifest.addModuleFlags(
pkgId,
new FilePath(npath.relative(pkgDir, filename)).asPosix,
{
esModule: true,
}
);

@@ -141,0 +146,0 @@ state.esModuleFlagAdded = true;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc