Skip to content

Commit b02b7cc

Browse files
committed
Package build updated
1 parent d4b816b commit b02b7cc

File tree

5 files changed

+38
-2
lines changed

5 files changed

+38
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules/

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
assets/
1+
*
2+
!dist/**

babel.config.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/env",
5+
{
6+
"targets": {
7+
"edge": "17",
8+
"firefox": "60",
9+
"chrome": "67",
10+
"safari": "11.1"
11+
},
12+
"useBuiltIns": "usage",
13+
"corejs": "3.6.5"
14+
}
15+
],
16+
"@babel/preset-react"
17+
]
18+
}

package.json

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"name": "netlify-cms-widget-permalink",
33
"version": "1.0.0",
44
"description": "Permalink widget for Netlify CMS",
5-
"main": "./index.js",
5+
"main": "dist/index.js",
6+
"module": "dist/index.js",
7+
"files": [
8+
"dist",
9+
"readme.md"
10+
],
611
"keywords": [],
712
"author": "Wojciech Kaluzny <[email protected]>",
813
"license": "MIT",
@@ -11,10 +16,20 @@
1116
"react": "^16.8.6",
1217
"react-dom": "^16.8.6"
1318
},
19+
"dependencies": {
20+
"@babel/polyfill": "^7.12.1"
21+
},
22+
"scripts": {
23+
"build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files"
24+
},
1425
"publishConfig": {
1526
"access": "public"
1627
},
1728
"devDependencies": {
29+
"@babel/cli": "^7.17.10",
30+
"@babel/core": "^7.18.2",
31+
"@babel/preset-env": "^7.18.2",
32+
"@babel/preset-react": "^7.17.12",
1833
"@types/react": "^16.8.23"
1934
}
2035
}

index.js renamed to src/index.js

File renamed without changes.

0 commit comments

Comments
 (0)