Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Apr 12, 2023
1 parent 006eb8a commit 67ec2ec
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.*
!.git*
!.npmrc
!/.npmrc
*.cpuprofile
/jsdoc
/lib/**/*.js
Expand Down
5 changes: 2 additions & 3 deletions dev/internal/package-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,14 @@ async function compileLib(pkgPath, dTsFilter)

async function compileTS(pkgPath, source, newOptions, writeFile)
{
const [{ default: fastGlob }, { default: ts }] =
await Promise.all([import('fast-glob'), import('typescript')]);
const [{ glob }, { default: ts }] = await Promise.all([import('glob'), import('typescript')]);

const { sys } = ts;
const program =
await
(async () =>
{
const fileNames = await fastGlob(source, { absolute: true, cwd: pkgPath });
const fileNames = await glob(source, { absolute: true, cwd: pkgPath });
const tsConfigPath = join(pkgPath, 'tsconfig.json');
const tsConfig = ts.readConfigFile(tsConfigPath, sys.readFile);
const { options } = ts.parseJsonConfigFileContent(tsConfig.config, sys, pkgPath);
Expand Down
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ task
};
const app = new Application();
app.options.addReader(new TSConfigReader());
app.bootstrap(options);
await app.bootstrapWithPlugins(options);
const project = app.convert();
await app.renderer.render(project, 'api-doc');
if (app.logger.hasErrors())
Expand All @@ -308,13 +308,13 @@ task
'make-spec-runner',
async () =>
{
const fastGlob = require('fast-glob');
const { glob } = require('glob');
const { writeFile } = require('fs/promises');
const Handlebars = require('handlebars');

async function getSpecs()
{
const specs = await fastGlob('**/*.spec.js', { cwd: 'test/lib' });
const specs = await glob('**/*.spec.js', { cwd: 'test/lib' });
return specs;
}

Expand All @@ -337,8 +337,8 @@ task
'make-workflows',
async () =>
{
const fastGlob = require('fast-glob');
const { writeFile } = require('fs/promises');
const { glob } = require('glob');
const Handlebars = require('handlebars');
const { join } = require('path');

Expand All @@ -356,7 +356,7 @@ task
await writeFile(path, output);
}

const promises = [getTemplate(), fastGlob('*', { cwd: 'packages', onlyDirectories: true })];
const promises = [getTemplate(), glob('*', { cwd: 'packages', onlyDirectories: true })];
const [template, pkgNames] = await Promise.all(promises);
const writeWorkflowPromises = pkgNames.map(writeWorkflow);
await Promise.all(writeWorkflowPromises);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"docs": "gulp docs",
"feature-info": "node dev/legacy/feature-info.js",
"prepare": "node dev/patch-rollup.mjs",
"release": "npm version -m 'Version %s' --tag-version-prefix=",
"test": "mocha --check-leaks --ui=ebdd test/{*,*/*,*/*/*}.spec.js"
},
"devDependencies": {
Expand All @@ -54,7 +55,7 @@
"ebdd": "latest",
"eslint-plugin-ebdd": "latest",
"expectations": "latest",
"fast-glob": "latest",
"glob": "latest",
"gulp": "latest",
"gulp-jsdoc3": "latest",
"gulp-rename": "latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/~feature-hub/src/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ FeatureConstructor
{
let featureObj: Feature;
if (feature instanceof Feature)
featureObj = feature as Feature;
featureObj = feature;
else
{
const name = esToString(feature);
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,5 +298,5 @@ converted.
* [jsfuck.com](http://www.jsfuck.com)
* [jQuery *Screwed*](https://github.com/fasttime/jquery-screwed)

[npm badge]: https://badge.fury.io/js/jscrewit.svg
[npm badge]: https://img.shields.io/npm/v/jscrewit?logo=npm
[npm url]: https://www.npmjs.com/package/jscrewit

0 comments on commit 67ec2ec

Please sign in to comment.