Skip to content

Commit 443e32c

Browse files
committed
Fix typo + mixed tabs/spaces
1 parent 1a8b75f commit 443e32c

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"clean": "rimraf dist && rimraf ../pythreejs/static && node ./scripts/clean-generated-files.js",
1414
"autogen-enums": "node ./scripts/generate-enums.js",
1515
"autogen-shaders": "node ./scripts/generate-shader-utils.js",
16-
"autogen-wrappers": "node ./scripts/generate-shader-utils.js",
16+
"autogen-wrappers": "node ./scripts/generate-wrappers.js",
1717
"autogen": "npm run autogen-wrappers && npm run autogen-shaders",
1818
"build": "webpack && node ./scripts/copy-three.js",
1919
"prepublish": "npm run autogen && npm run build"

js/scripts/clean-generated-files.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function mapPromiseFnOverGlob(globPattern, mapFn, globOptions) {
3131
} else if (result instanceof Promise) {
3232
promises.push(result);
3333
} else {
34-
promises.push(Promise.resolve(result));
34+
promises.push(Promise.resolve(result));
3535
}
3636
})
3737
.on('end', function() {
@@ -49,35 +49,35 @@ function mapPromiseFnOverGlob(globPattern, mapFn, globOptions) {
4949
}
5050

5151
function rmFileGlobAsync(globPattern) {
52-
return mapPromiseFnOverGlob(globPattern, function(filePath) {
53-
console.log(filePath);
54-
var absPath = path.resolve(baseDir, filePath);
55-
return fse.removeAsync(absPath);
56-
}, {
52+
return mapPromiseFnOverGlob(globPattern, function(filePath) {
53+
console.log(filePath);
54+
var absPath = path.resolve(baseDir, filePath);
55+
return fse.removeAsync(absPath);
56+
}, {
5757
cwd: baseDir,
5858
nodir: true,
5959
ignore: [
60-
'./node_modules/**'
60+
'./node_modules/**'
6161
]
6262
});
6363
}
6464

6565
function cleanGeneratedFilesAsync() {
66-
// trailing slash will match only directories
67-
var jsPromise = rmFileGlobAsync('./**/*.autogen.js');
68-
var jsonPromise = rmFileGlobAsync('./**/*.autogen.json');
69-
var jsIndexPromise = rmFileGlobAsync('./**/index.js');
66+
// trailing slash will match only directories
67+
var jsPromise = rmFileGlobAsync('./**/*.autogen.js');
68+
var jsonPromise = rmFileGlobAsync('./**/*.autogen.json');
69+
var jsIndexPromise = rmFileGlobAsync('./**/index.js');
7070

71-
var pyPromise = rmFileGlobAsync('../pythreejs/**/*_autogen.py');
72-
var pyIndexPromise = rmFileGlobAsync('../pythreejs/**/__init__.py');
71+
var pyPromise = rmFileGlobAsync('../pythreejs/**/*_autogen.py');
72+
var pyIndexPromise = rmFileGlobAsync('../pythreejs/**/__init__.py');
7373

74-
return Promise.all([
74+
return Promise.all([
7575
jsPromise,
7676
jsonPromise,
77-
jsIndexPromise,
78-
pyPromise,
79-
pyIndexPromise,
80-
]);
77+
jsIndexPromise,
78+
pyPromise,
79+
pyIndexPromise,
80+
]);
8181
}
8282

8383
if (require.main === module) {

0 commit comments

Comments
 (0)