Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
fix: Fix/load npm plugin (#61)
Browse files Browse the repository at this point in the history
* fix: get npm root

* fix: toString to typeof

* fix: add *.js and *.json

* test: copyfile
  • Loading branch information
echosoar committed Feb 24, 2020
1 parent a3e8d3e commit 8d00e37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/faas-cli-plugin-package/src/index.ts
Expand Up @@ -197,9 +197,9 @@ export class PackagePlugin extends BasePlugin {
const include = await globby(
[
this.options.sourceDir || 'src',
'tsconfig.json',
'package.json',
'*.yml',
'*.js',
'*.json'
].concat(packageObj.include || []),
{ cwd: this.servicePath }
);
Expand Down
Empty file.
1 change: 1 addition & 0 deletions packages/faas-cli-plugin-package/test/package.test.ts
Expand Up @@ -33,6 +33,7 @@ describe('/test/package.test.ts', () => {
assert(existsSync(join(buildPath, 'node_modules')));
assert(existsSync(join(buildPath, 'src')));
assert(existsSync(join(buildPath, 'package.json')));
assert(existsSync(join(buildPath, 'copy.js')));
assert(existsSync(join(buildPath, 'tsconfig.json')));
assert(existsSync(resolve(baseDir, 'serverless.zip')));
});
Expand Down

0 comments on commit 8d00e37

Please sign in to comment.