create-goji-app
Advanced tools
Comparing version 0.11.1 to 0.11.2
@@ -6,3 +6,3 @@ "use strict"; | ||
const mkdirp_1 = tslib_1.__importDefault(require("mkdirp")); | ||
const globby_1 = require("globby"); | ||
const globby_1 = tslib_1.__importDefault(require("globby")); | ||
const path_1 = tslib_1.__importDefault(require("path")); | ||
@@ -23,3 +23,3 @@ const ejs_1 = tslib_1.__importDefault(require("ejs")); | ||
try { | ||
for (var _b = tslib_1.__asyncValues(globby_1.globbyStream(path_1.default.join(sourcePath, '**'))), _c; _c = yield _b.next(), !_c.done;) { | ||
for (var _b = tslib_1.__asyncValues(globby_1.default.stream(path_1.default.join(sourcePath, '**'))), _c; _c = yield _b.next(), !_c.done;) { | ||
const sourceFileBuf = _c.value; | ||
@@ -31,2 +31,4 @@ const sourceFile = sourceFileBuf.toString(); | ||
projectName, | ||
// eslint-disable-next-line global-require, import/no-unresolved | ||
version: require('../../package.json').version, | ||
}); | ||
@@ -33,0 +35,0 @@ } |
import { __asyncValues, __awaiter } from "tslib"; | ||
import mkdirp from 'mkdirp'; | ||
import { globbyStream } from 'globby'; | ||
import globby from 'globby'; | ||
import path from 'path'; | ||
@@ -19,3 +19,3 @@ import ejs from 'ejs'; | ||
try { | ||
for (var _b = __asyncValues(globbyStream(path.join(sourcePath, '**'))), _c; _c = yield _b.next(), !_c.done;) { | ||
for (var _b = __asyncValues(globby.stream(path.join(sourcePath, '**'))), _c; _c = yield _b.next(), !_c.done;) { | ||
const sourceFileBuf = _c.value; | ||
@@ -27,2 +27,4 @@ const sourceFile = sourceFileBuf.toString(); | ||
projectName, | ||
// eslint-disable-next-line global-require, import/no-unresolved | ||
version: require('../../package.json').version, | ||
}); | ||
@@ -29,0 +31,0 @@ } |
{ | ||
"name": "create-goji-app", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"description": "Create GojiJS App", | ||
@@ -23,7 +23,7 @@ "main": "index.js", | ||
"ejs": "^3.1.3", | ||
"globby": "^12.0.0", | ||
"globby": "^11.0.1", | ||
"mkdirp": "^1.0.4", | ||
"tslib": "^2.3.0" | ||
}, | ||
"gitHead": "c91cbfd4548aec7783d45346c5b79a1e1e40f635" | ||
"gitHead": "eb02139aab6f5ac43f0101cdc6b3a10e9f2f0510" | ||
} |
import mkdirp from 'mkdirp'; | ||
import { globbyStream } from 'globby'; | ||
import globby from 'globby'; | ||
import path from 'path'; | ||
@@ -18,3 +18,3 @@ import ejs from 'ejs'; | ||
export const generateProject = async (projectName, sourcePath: string, destPath: string) => { | ||
for await (const sourceFileBuf of globbyStream(path.join(sourcePath, '**'))) { | ||
for await (const sourceFileBuf of globby.stream(path.join(sourcePath, '**'))) { | ||
const sourceFile = sourceFileBuf.toString(); | ||
@@ -25,4 +25,6 @@ const relativePath = path.relative(sourcePath, sourceFile); | ||
projectName, | ||
// eslint-disable-next-line global-require, import/no-unresolved | ||
version: require('../../package.json').version, | ||
}); | ||
} | ||
}; |
@@ -15,3 +15,3 @@ { | ||
"dependencies": { | ||
"@goji/core": "^0.7.6", | ||
"@goji/core": "^<%= version %>", | ||
"classnames": "^2.2.6", | ||
@@ -22,3 +22,9 @@ "core-js": "^3.6.5", | ||
"devDependencies": { | ||
"@goji/cli": "^0.7.6", | ||
"@babel/core": "^7.15.0", | ||
"@babel/plugin-transform-runtime": "^7.15.0", | ||
"@babel/preset-env": "^7.15.0", | ||
"@babel/preset-react": "^7.14.5", | ||
"@babel/preset-typescript": "^7.15.0", | ||
"babel-plugin-macros": "^3.1.0", | ||
"@goji/cli": "^<%= version %>", | ||
"@types/classnames": "^2.2.10", | ||
@@ -25,0 +31,0 @@ "@types/css-modules": "^1.0.0", |
@@ -15,5 +15,6 @@ { | ||
"moduleResolution": "node", | ||
"jsx": "react" | ||
"jsx": "react", | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["./src/**/*"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32233
39
528
7
4
+ Addedarray-union@2.1.0(transitive)
+ Addedglobby@11.1.0(transitive)
+ Addedslash@3.0.0(transitive)
- Removedarray-union@3.0.1(transitive)
- Removedglobby@12.2.0(transitive)
- Removedslash@4.0.0(transitive)
Updatedglobby@^11.0.1