create-react-styleguide
Advanced tools
Comparing version 8.2.0 to 8.2.1
@@ -1,2 +0,1 @@ | ||
const { join } = require('path'); | ||
const runParallel = require('run-parallel'); | ||
@@ -7,8 +6,4 @@ const runSeries = require('run-series'); | ||
const noop = require('../../util/noop'); | ||
const copyTemplate = require('../../util/copy-template'); | ||
const { DIRECTORIES, MODULE_FORMATS, NODE_ENVIRONMENTS } = require('../../../lib'); | ||
const { MODULE_FORMATS, NODE_ENVIRONMENTS } = require('../../../lib'); | ||
const distTemplateDirectory = join(__dirname, `../../../templates/${DIRECTORIES.DIST}`); | ||
const distTargetDirectory = join(process.cwd(), DIRECTORIES.DIST); | ||
const build = ({ env, format, flags, cb }) => | ||
@@ -38,9 +33,3 @@ spawn(rollup, ['-c', ...flags], { | ||
]; | ||
runSeries( | ||
[ | ||
cb => copyTemplate(distTemplateDirectory, distTargetDirectory, {}, cb), | ||
cb => runParallel(steps, cb), | ||
], | ||
callback | ||
); | ||
runSeries([cb => runParallel(steps, cb)], callback); | ||
}; |
@@ -5,2 +5,9 @@ # Changelog | ||
### [8.2.1](https://github.com/zillow/create-react-styleguide/compare/v8.2.0...v8.2.1) (2022-08-18) | ||
### Bug Fixes | ||
* dual package extensions ([261950f](https://github.com/zillow/create-react-styleguide/commit/261950fade0e3105392ca96cd17a7b11deab3592)) | ||
## [8.2.0](https://github.com/zillow/create-react-styleguide/compare/v8.1.3...v8.2.0) (2022-04-12) | ||
@@ -7,0 +14,0 @@ |
@@ -8,2 +8,3 @@ const { babel } = require('@rollup/plugin-babel'); | ||
const DIRECTORIES = require('../constants/DIRECTORIES'); | ||
const MODULE_FORMATS = require('../constants/MODULE_FORMATS'); | ||
const NODE_ENVIRONMENTS = require('../constants/NODE_ENVIRONMENTS'); | ||
@@ -26,3 +27,16 @@ | ||
const outputDirectory = isProduction ? DIRECTORIES.PROD : DIRECTORIES.DEV; | ||
const pgkIsModule = pkg.type === 'module'; | ||
const getExtension = () => { | ||
if (MODULE_FORMAT === MODULE_FORMATS.CJS) { | ||
return pgkIsModule ? '.cjs' : '.js'; | ||
} | ||
if (MODULE_FORMAT === MODULE_FORMATS.ESM) { | ||
return pgkIsModule ? '.js' : '.mjs'; | ||
} | ||
return '.js'; | ||
}; | ||
module.exports = { | ||
@@ -33,2 +47,3 @@ input: `${currentDirectory}/${DIRECTORIES.SRC}/index.js`, | ||
dir: `${currentDirectory}/${DIRECTORIES.DIST}/${MODULE_FORMAT}/${outputDirectory}`, | ||
entryFileNames: `[name]${getExtension()}`, | ||
exports: 'named', | ||
@@ -43,3 +58,8 @@ format: MODULE_FORMAT, | ||
external: [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})], | ||
external: [ | ||
...Object.keys(pkg.dependencies || {}), | ||
...Object.keys(pkg.devDependencies || {}), | ||
...Object.keys(pkg.peerDependencies || {}), | ||
/^@babel\/.*/, | ||
], | ||
@@ -46,0 +66,0 @@ plugins: [ |
{ | ||
"name": "create-react-styleguide", | ||
"description": "A toolkit for creating React component libraries and style guides", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"license": "ISC", | ||
@@ -36,16 +36,16 @@ "author": "Brian Stone <brians@zillowgroup.com>", | ||
"dependencies": { | ||
"@babel/cli": "^7.17.6", | ||
"@babel/core": "^7.17.5", | ||
"@babel/plugin-proposal-class-properties": "^7.16.7", | ||
"@babel/plugin-proposal-private-methods": "^7.16.11", | ||
"@babel/plugin-proposal-private-property-in-object": "^7.16.7", | ||
"@babel/plugin-transform-runtime": "^7.17.0", | ||
"@babel/runtime": "^7.17.2", | ||
"@babel/cli": "^7.18.10", | ||
"@babel/core": "^7.18.10", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-private-methods": "^7.18.6", | ||
"@babel/plugin-proposal-private-property-in-object": "^7.18.6", | ||
"@babel/plugin-transform-runtime": "^7.18.10", | ||
"@babel/runtime": "^7.18.9", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^21.0.2", | ||
"@rollup/plugin-eslint": "^8.0.1", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"acorn": "^8.7.0", | ||
"babel-loader": "^8.2.3", | ||
"babel-plugin-styled-components": "^1.13.3", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-eslint": "^8.0.2", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"acorn": "^8.8.0", | ||
"babel-loader": "^8.2.5", | ||
"babel-plugin-styled-components": "^2.0.7", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
@@ -58,28 +58,28 @@ "babel-preset-zillow": "^4.4.0", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-jest": "^26.1.1", | ||
"eslint-plugin-jest": "^26.8.3", | ||
"eslint-plugin-zillow": "^4.0.0", | ||
"inquirer": "^8.2.0", | ||
"jest": "^27.5.1", | ||
"jest-styled-components": "^7.0.5", | ||
"jest-styled-components": "^7.1.0", | ||
"ora": "^5.4.1", | ||
"prettier": "^2.5.1", | ||
"prettier": "^2.7.1", | ||
"prettier-config-zillow": "^1.3.0", | ||
"react-styleguidist": "^11.2.0", | ||
"resolve": "^1.22.0", | ||
"resolve": "^1.22.1", | ||
"resolve-pkg": "^2.0.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.68.0", | ||
"rollup": "^2.78.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"run-parallel": "^1.2.0", | ||
"run-series": "^1.1.9", | ||
"semver": "^7.3.5", | ||
"semver": "^7.3.7", | ||
"tacks": "^1.3.0", | ||
"tempy": "^1.0.1", | ||
"webpack": "^4.46.0", | ||
"yargs": "^17.3.1" | ||
"yargs": "^17.5.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^16.2.1", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"husky": "^7.0.4", | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"husky": "^8.0.1", | ||
"prop-types": "^15.8.1", | ||
@@ -89,4 +89,4 @@ "react": "^17.0.2", | ||
"react-test-renderer": "^17.0.2", | ||
"standard-version": "^9.3.2", | ||
"styled-components": "^5.3.3" | ||
"standard-version": "^9.5.0", | ||
"styled-components": "^5.3.5" | ||
}, | ||
@@ -93,0 +93,0 @@ "repository": { |
@@ -5,15 +5,15 @@ { | ||
"description": "{{name}} React component library", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/prod/index.js", | ||
"main": "dist/cjs/prod/index.js", | ||
"module": "dist/es/prod/index.mjs", | ||
"exports": { | ||
"development": { | ||
"import": "./dist/es/dev/index.js", | ||
"import": "./dist/es/dev/index.mjs", | ||
"require": "./dist/cjs/dev/index.js" | ||
}, | ||
"production": { | ||
"import": "./dist/es/prod/index.js", | ||
"import": "./dist/es/prod/index.mjs", | ||
"require": "./dist/cjs/prod/index.js" | ||
}, | ||
"default": { | ||
"import": "./dist/es/prod/index.js", | ||
"import": "./dist/es/prod/index.mjs", | ||
"require": "./dist/cjs/prod/index.js" | ||
@@ -20,0 +20,0 @@ } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1420
28
88194
60
+ Added@babel/plugin-syntax-json-strings@7.8.3(transitive)
+ Added@babel/plugin-syntax-logical-assignment-operators@7.10.4(transitive)
+ Added@rollup/plugin-commonjs@22.0.2(transitive)
+ Addedbabel-plugin-styled-components@2.1.4(transitive)
+ Addedescodegen@2.1.0(transitive)
+ Addedimport-fresh@3.3.1(transitive)
+ Addedjsdom@16.7.0(transitive)
+ Addedws@7.5.10(transitive)
- Removed@rollup/plugin-commonjs@21.1.0(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbrowserify-des@1.0.2(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedjson-buffer@3.0.1(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@3.0.04.1.05.0.0(transitive)
- Removedreusify@1.0.4(transitive)
- Removedset-function-length@1.2.2(transitive)
Updated@babel/cli@^7.18.10
Updated@babel/core@^7.18.10
Updated@babel/plugin-proposal-private-property-in-object@^7.18.6
Updated@babel/runtime@^7.18.9
Updated@rollup/plugin-eslint@^8.0.2
Updatedacorn@^8.8.0
Updatedbabel-loader@^8.2.5
Updatedeslint-plugin-jest@^26.8.3
Updatedprettier@^2.7.1
Updatedresolve@^1.22.1
Updatedrollup@^2.78.0
Updatedsemver@^7.3.7
Updatedyargs@^17.5.1