-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure it also works when included as an npm module
When I uploaded the package to npm, the index.js in the package was itself placed under node_modules, which made the exclude-node-modules feature not work at all (so 'use strict' would be applied to all files. Now we use a substring of __dirname up to the first occurrence of the string 'node_modules' as the base directory name.
- Loading branch information
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "auto-strict", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Add 'use strict'; to all code not in node_modules", | ||
"main": "index.js", | ||
"author": "Tor Arvid Lund <[email protected]>", | ||
|