UNPKG

@js-temporal/polyfill

Version:

Polyfill for Temporal (https://github.com/tc39/proposal-temporal), an ECMA TC39 Stage 3 proposal

144 lines (143 loc) 4.61 kB
{ "name": "@js-temporal/polyfill", "version": "0.5.1", "description": "Polyfill for Temporal (https://github.com/tc39/proposal-temporal), an ECMA TC39 Stage 3 proposal", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.esm.js", "browser": "./dist/index.umd.js", "exports": { ".": [ { "import": { "types": "./index.d.ts", "default": "./dist/index.esm.js" }, "require": { "types": "./index.d.cts", "default": "./dist/index.cjs" }, "default": "./dist/index.cjs" }, "./dist/index.cjs" ] }, "sideEffects": [ "./tsc-out/calendar.js" ], "types": "./index.d.ts", "scripts": { "test": "npm run build && node --no-warnings --experimental-modules --experimental-specifier-resolution=node --icu-data-dir node_modules/full-icu --loader ./test/resolve.source.mjs ./test/all.mjs", "test262": "TEST262=1 npm run build && node runtest262.mjs \"$@\"", "testValidStrings": "npm run build && node --experimental-modules --experimental-specifier-resolution=node --no-warnings --icu-data-dir ./node_modules/full-icu/ --loader ./test/resolve.source.mjs test/validStrings.mjs", "build": "rm -rf dist/* tsc-out/* && tsc && rollup -c rollup.config.js --bundleConfigAsCjs", "prepare": "npm run build", "prepublishOnly": "node copy-types.mjs && npm run build", "update": "npx npm-check-updates -u -x @pipobscure/demitasse && npm install", "playground": "TEMPORAL_PLAYGROUND=1 npm run build && node --experimental-modules --no-warnings --icu-data-dir node_modules/full-icu -r ./dist/playground.cjs", "lint": "eslint . --ext ts,js,mjs,.d.ts --max-warnings 0 --cache \"$@\" && npm run prettier", "postlint": "npm run tscheck", "prune": "ts-prune -e -i test/tc39 -i \"(lib/index|lib/init|index.d).ts\"", "prettier": "prettier lib/* ./test/*.mjs ./*.md ./*.json ./*.d.ts ./*.js ./.*.yml --check", "prettierfix": "prettier lib/* ./test/*.mjs ./*.md ./*.json ./*.d.ts ./*.js ./.*.yml --check --write", "eslintfix": "eslint . --ext ts,js,mjs,.d.ts --fix", "fix": "npm run eslintfix && npm run prettierfix", "tscheck": "tsc index.d.ts --noEmit --strict --lib ESNext" }, "keywords": [ "Calendar", "Date", "DateTime", "Duration", "Instant", "MonthDay", "Polyfill", "Temporal", "Time", "Timestamp", "TimeZone", "YearMonth" ], "author": "Philipp Dunkel <pip@pipobscure.com>", "contributors": [ "Daniel Ehrenberg", "Jason Williams", "Justin Grant", "James Wright", "Maggie Johnson-Pint", "Matt Johnson-Pint", "Ms2ger", "Philip Chimento", "Philipp Dunkel", "Sasha Pierson", "Shane F. Carr", "Ujjwal Sharma" ], "license": "ISC", "files": [ "index.d.ts", "index.d.cts", "dist", "lib", "CHANGELOG.md" ], "overrides": { "@rollup/pluginutils": "^5.0.2" }, "dependencies": { "jsbi": "^4.3.0" }, "devDependencies": { "@babel/core": "^7.22.5", "@babel/preset-env": "^7.22.5", "@js-temporal/temporal-test262-runner": "^0.10.1", "@pipobscure/demitasse": "^1.0.10", "@pipobscure/demitasse-pretty": "^1.0.10", "@pipobscure/demitasse-run": "^1.0.10", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@rollup/plugin-replace": "^5.0.2", "@rollup/plugin-strip": "^3.0.4", "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.1", "@typescript-eslint/eslint-plugin": "^5.59.9", "@typescript-eslint/parser": "^5.59.9", "eslint": "^8.42.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "full-icu": "^1.5.0", "prettier": "^2.8.8", "rollup": "^3.24.0", "rollup-plugin-dts": "^5.3.0", "rollup-plugin-sourcemaps": "^0.6.3", "timezones.json": "^1.7.0", "ts-prune": "^0.10.3", "typescript": "^5.1.3", "yargs": "^17.7.2" }, "engines": { "node": ">=12" }, "prettier": { "printWidth": 120, "trailingComma": "none", "tabWidth": 2, "semi": true, "singleQuote": true, "bracketSpacing": true, "arrowParens": "always" }, "directories": { "lib": "lib", "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/js-temporal/temporal-polyfill.git" }, "bugs": { "url": "https://github.com/js-temporal/temporal-polyfill/issues" }, "homepage": "https://github.com/js-temporal/temporal-polyfill#readme" }