diff --git a/package-lock.json b/package-lock.json index d7697b6..e50a586 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1245,7 +1245,6 @@ "version": "0.20.0", "resolved": "https://registry.npmjs.org/axios/-/axios-0.20.0.tgz", "integrity": "sha512-ANA4rr2BDcmmAQLOKft2fufrtuvlqR+cXNNinUmvfeSNCOF98PZL+7M/v1zIdGo7OLjEA9J2gXJL+j4zGsl0bA==", - "dev": true, "requires": { "follow-redirects": "^1.10.0" } @@ -3153,8 +3152,7 @@ "follow-redirects": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz", - "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==", - "dev": true + "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==" }, "for-in": { "version": "1.0.2", diff --git a/package.json b/package.json index e4762ae..6c4f922 100644 --- a/package.json +++ b/package.json @@ -3,21 +3,21 @@ "version": "1.1.0", "description": "Helper methods to simplify requests to the Figma API", "main": "dist/index.js", - "dependencies": {}, + "dependencies": { + "axios": "~0.20.0" + }, "devDependencies": { "@commitlint/cli": "^9.0.1", "@commitlint/config-conventional": "~10.0.0", "@semantic-release/changelog": "^5.0.1", "@semantic-release/exec": "^5.0.0", "@semantic-release/git": "^9.0.0", - "axios": "~0.20.0", "clean-webpack-plugin": "~3.0.0", "dotenv": "~8.2.0", "eslint": "^7.0.0", "eslint-plugin-yaml": "~0.3.0", "husky": "^4.2.5", "lyne-helper-eslint-config": "~1.0.1", - "minimist": "~1.2.5", "semantic-release": "^17.0.8", "semantic-release-slack-bot": "^1.6.2", "shelljs": "~0.8.4", diff --git a/test.js b/test.js index c7b0aa7..d73d507 100644 --- a/test.js +++ b/test.js @@ -1,4 +1,4 @@ -const figma = require('lyneFigmaApi'); +const figma = require('./dist'); require('dotenv') .config(); diff --git a/webpack.config.js b/webpack.config.js index 40639e2..fbefec5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,11 +10,9 @@ module.exports = { mode: 'production', output: { filename: 'index.js', - // globalObject: 'this', library: 'lyneFigmaApi', libraryTarget: 'umd', path: path.resolve(__dirname, './dist') - // umdNamedDefine: true }, plugins: [new CleanWebpackPlugin()], target: 'node'