Skip to content

Commit

Permalink
feat: use siroc build
Browse files Browse the repository at this point in the history
adds exports and esm build
  • Loading branch information
pi0 committed May 17, 2021
1 parent c010205 commit c096a2d
Show file tree
Hide file tree
Showing 5 changed files with 982 additions and 699 deletions.
38 changes: 18 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,31 @@
"name": "@nuxt/devalue",
"version": "1.2.5",
"description": "Gets the job done when JSON.stringify can't",
"repository": "nuxt-community/devalue",
"repository": "nuxt/devalue",
"license": "MIT",
"exports": {
".": {
"require": "./dist/devalue.js",
"import": "./dist/devalue.mjs"
}
},
"main": "./dist/devalue.js",
"module": "./dist/devalue.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"types"
"dist"
],
"main": "dist/devalue.cjs.js",
"module": "dist/devalue.esm.js",
"browser": "dist/devalue.js",
"types": "types/index.d.ts",
"scripts": {
"build": "npm run build-declarations && rollup -c",
"build-declarations": "tsc -d && node scripts/move-type-declarations.js",
"prepublishOnly": "npm run build && npm test",
"build": "siroc build",
"prepack": "yarn build",
"test": "mocha --opts mocha.opts"
},
"devDependencies": {
"@types/mocha": "^5.2.6",
"@types/node": "^12.0.10",
"glob": "^7.1.3",
"mocha": "^6.0.2",
"rollup": "^1.3.2",
"rollup-plugin-typescript": "^1.0.0",
"rollup-plugin-virtual": "^1.0.1",
"@types/mocha": "^8.2.2",
"@types/node": "^15.3.0",
"mocha": "^8.4.0",
"sander": "^0.6.0",
"ts-node": "^8.0.2",
"tslib": "^1.9.3",
"typescript": "^3.3.3333"
"siroc": "^0.10.0",
"typescript": "^4.2.4"
}
}
24 changes: 0 additions & 24 deletions rollup.config.js

This file was deleted.

11 changes: 0 additions & 11 deletions scripts/move-type-declarations.js

This file was deleted.

18 changes: 3 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
{
"compilerOptions": {
"noImplicitAny": true,
"diagnostics": true,
"noImplicitThis": true,
"noEmitOnError": true,
"lib": ["es5", "es6", "dom"]
},
"target": "ES2018",
"module": "ES6",
"include": [
"src"
],
"exclude": [
"node_modules"
]
}
"strict": true
}
}
Loading

0 comments on commit c096a2d

Please sign in to comment.