Skip to content

Commit d4a3128

Browse files
authored
Updated timezone-data package to use TypeScript (#480)
refs https://github.com/TryGhost/Product/issues/4073
1 parent ecfccf0 commit d4a3128

File tree

54 files changed

+906
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+906
-110
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ typings/
6363
.idea/*
6464
*.iml
6565
*.sublime-*
66+
.vscode
6667

6768
# OSX
6869
.DS_Store

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"eslint": "8.39.0",
23-
"eslint-plugin-ghost": "2.16.0",
23+
"eslint-plugin-ghost": "3.3.2",
2424
"eslint-plugin-react": "7.32.2",
2525
"lerna": "6.6.2",
2626
"mocha": "10.2.0",

packages/adapter-base-cache/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./lib/adapter-base-cache');
1+
module.exports = require('./lib/BaseCacheAdapter');

packages/adapter-base-cache/test/adapter-base-cache.test.js renamed to packages/adapter-base-cache/test/BaseCacheAdapter.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const assert = require('assert');
1+
const assert = require('assert/strict');
22
const BaseCacheAdapter = require('../index');
33

44
describe('adapter base cache', function () {

packages/admin-api/.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ module.exports = {
22
plugins: ['ghost'],
33
extends: [
44
'plugin:ghost/node'
5-
]
5+
],
6+
rules: {
7+
'ghost/ghost-custom/no-native-error': 'off'
8+
}
69
};

packages/limit-service/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('./lib/LimitService');

packages/limit-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"repository": "https://github.com/TryGhost/SDK/tree/main/packages/limit-service",
55
"author": "Ghost Foundation",
66
"license": "MIT",
7-
"main": "./lib/limit-service.js",
8-
"exports": "./lib/limit-service.js",
7+
"main": "index.js",
8+
"exports": "./index.js",
99
"scripts": {
1010
"dev": "echo \"Implement me!\"",
1111
"test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",

packages/limit-service/test/limit-service.test.js renamed to packages/limit-service/test/LimitService.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// const testUtils = require('./utils');
33
require('./utils');
44
const should = require('should');
5-
const LimitService = require('../lib/limit-service');
5+
const LimitService = require('../lib/LimitService');
66
const {MaxLimit, MaxPeriodicLimit, FlagLimit} = require('../lib/limit');
77
const sinon = require('sinon');
88

0 commit comments

Comments
 (0)