Socket
Socket
Sign inDemoInstall

mini-entry

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-entry - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

15

lib/utils/generateNodeModuleEntry.js

@@ -5,3 +5,3 @@ /*

* @Last Modified by: youzhao.zhou
* @Last Modified time: 2021-04-21 17:02:51
* @Last Modified time: 2021-04-21 22:12:42
* @Description 生成node_modules中的组件入口

@@ -59,10 +59,13 @@ * js wxml json wxss?

const entry = [
`${moduleDirName}/${entryPath}.${compiledSuffix.js}`,
`${moduleDirName}/${entryPath}.${compiledSuffix.xml}`,
`${moduleDirName}/${entryPath}.json`,
join(process.cwd(), `${moduleDirName}/${entryPath}.${compiledSuffix.js}`),
join(process.cwd(), `${moduleDirName}/${entryPath}.${compiledSuffix.xml}`),
join(process.cwd(), `${moduleDirName}/${entryPath}.json`),
];
const stylePath = `${moduleDirName}/${entryPath}.${compiledSuffix.css}`;
const stylePath = join(
process.cwd(),
`${moduleDirName}/${entryPath}.${compiledSuffix.css}`,
);
if (fs.existsSync(join(process.cwd(), stylePath))) {
if (fs.existsSync(stylePath)) {
entry.push(stylePath);

@@ -69,0 +72,0 @@ }

2

package.json
{
"name": "mini-entry",
"version": "0.0.6",
"version": "0.0.7",
"description": "解析小程序json",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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